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

Commit 345569f6 authored by Beverly's avatar Beverly
Browse files

Add NPE protection to NextAlarmController dump

Test: manual
Fixes: 199469246
Change-Id: I8702c3ca69c31cb18264741c51bc31f874311f60
parent 9ca70521
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -71,7 +71,11 @@ public class NextAlarmControllerImpl extends BroadcastReceiver
        if (mNextAlarm != null) {
            pw.println(new Date(mNextAlarm.getTriggerTime()));
            pw.print("  PendingIntentPkg=");
            if (mNextAlarm.getShowIntent() != null) {
                pw.println(mNextAlarm.getShowIntent().getCreatorPackage());
            } else {
                pw.println("showIntent=null");
            }
        } else {
            pw.println("null");
        }