Merge "Add NPE protection to NextAlarmController dump" into sc-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
61671b413b
@@ -71,7 +71,11 @@ public class NextAlarmControllerImpl extends BroadcastReceiver
|
|||||||
if (mNextAlarm != null) {
|
if (mNextAlarm != null) {
|
||||||
pw.println(new Date(mNextAlarm.getTriggerTime()));
|
pw.println(new Date(mNextAlarm.getTriggerTime()));
|
||||||
pw.print(" PendingIntentPkg=");
|
pw.print(" PendingIntentPkg=");
|
||||||
|
if (mNextAlarm.getShowIntent() != null) {
|
||||||
pw.println(mNextAlarm.getShowIntent().getCreatorPackage());
|
pw.println(mNextAlarm.getShowIntent().getCreatorPackage());
|
||||||
|
} else {
|
||||||
|
pw.println("showIntent=null");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
pw.println("null");
|
pw.println("null");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user