Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public String getString(String key, String def)
public Object getPreference(String key)
{
Object value = null;
if (systemProperties != null) {
if (systemProperties != null && systemProperties.has(key)) {
try {
value = systemProperties.get(key);
} catch (JSONException e) {
Expand Down Expand Up @@ -119,7 +119,7 @@ public int getInt(String key, int def)
}
try {
int value = def;
if (systemProperties != null) {
if (systemProperties != null && systemProperties.has(key)) {
try {
value = systemProperties.getInt(key);
} catch (JSONException e) {
Expand Down Expand Up @@ -224,7 +224,7 @@ public boolean getBool(String key, boolean def)
}
try {
boolean value = def;
if (systemProperties != null) {
if (systemProperties != null && systemProperties.has(key)) {
try {
value = systemProperties.getBoolean(key);
} catch (JSONException e) {
Expand Down
Loading