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

Commit c677dfde authored by Paul Sliwowski's avatar Paul Sliwowski
Browse files

Fix NPE when deleted alarm is null.

Bug: 11121223
Change-Id: I798749516072375c37635bd5cb884e0ffd79f40f
(cherry picked from commit 28c78f7d)
parent 3a7dbb54
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1768,7 +1768,7 @@ public class AlarmClockFragment extends DeskClockFragment implements

            @Override
            protected void onPostExecute(AlarmInstance instance) {
                if (alarm.enabled && instance != null) {
                if (instance != null) {
                    AlarmUtils.popAlarmSetToast(context, instance.getAlarmTime().getTimeInMillis());
                }
            }