OSDN Git Service

Don't crash when canceling alarms if a direct listener is present
authorLorenzo Colitti <lorenzo@google.com>
Sun, 22 Nov 2015 13:00:08 +0000 (22:00 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Tue, 24 Nov 2015 04:47:14 +0000 (13:47 +0900)
commit9b43ce0c98ce9f865d6db547529d098c8982ccc2
tree49d5a69876950ea89c9fc945dab3650cdebceea0
parent0fe13b1f7001f5e2f23062a97140784258f3423e
Don't crash when canceling alarms if a direct listener is present

If a direct listener alarm attempts to match a regular
PendingIntent alarm, it will attempt to fetch the binder of the
regular alarm's direct listener, which is null, and crash the
system with an NPE.

Bug: 25823676
Change-Id: I85fb98b43436930a2513274dc5ab408f7d41d97f
services/core/java/com/android/server/AlarmManagerService.java