Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77472104 authored by Joe Onorato's avatar Joe Onorato
Browse files

Fix bug 2389454 - DateTimeView can NPE if "date_format" isn't set in Settings.

parent 5fdff9e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -203,7 +203,7 @@ public class DateTimeView extends TextView {
    private DateFormat getDateFormat() {
        String format = Settings.System.getString(getContext().getContentResolver(),
                Settings.System.DATE_FORMAT);
        if ("".equals(format)) {
        if (format == null || "".equals(format)) {
            return DateFormat.getDateInstance(DateFormat.SHORT);
        } else {
            return new SimpleDateFormat(format);