mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Avoid possible NPE
This commit is contained in:
@@ -85,7 +85,11 @@ public class TimePreference extends DialogPreference {
|
||||
time = getPersistedString(defaultValue.toString());
|
||||
}
|
||||
} else {
|
||||
if (defaultValue != null) {
|
||||
time = defaultValue.toString();
|
||||
} else {
|
||||
time = "00:00";
|
||||
}
|
||||
}
|
||||
|
||||
String[] pieces = time.split(":");
|
||||
|
||||
Reference in New Issue
Block a user