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

Commit cb5599c9 authored by Jay Shrauner's avatar Jay Shrauner Committed by Android Git Automerger
Browse files

am 7bcdf514: Fix NPE when event type is unset

* commit '7bcdf514':
  Fix NPE when event type is unset
parents 9c0d8be1 7bcdf514
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -173,7 +173,7 @@ public class EventFieldEditorView extends LabeledEditorView {
        final int defaultYear = calendar.get(Calendar.YEAR);

        // Check whether the year is optional
        final boolean isYearOptional = getType().isYearOptional();
        final boolean isYearOptional = getType() != null && getType().isYearOptional();

        if (!isYearOptional && !TextUtils.isEmpty(oldValue)) {
            final ParsePosition position = new ParsePosition(0);