mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-11 01:21:56 +01:00
Xiaomi: Fix NPE when notification lookup fails
This commit is contained in:
parent
96668368c5
commit
f9917851ef
@ -229,6 +229,11 @@ public class XiaomiNotificationService extends AbstractXiaomiService implements
|
||||
return;
|
||||
}
|
||||
|
||||
if (mNotificationPackageName.lookup(id) == null) {
|
||||
LOG.warn("Unable to lookup notification {} to delete", id);
|
||||
return;
|
||||
}
|
||||
|
||||
final XiaomiProto.NotificationId notificationId = XiaomiProto.NotificationId.newBuilder()
|
||||
.setId(id)
|
||||
.setPackage(mNotificationPackageName.lookup(id))
|
||||
|
Loading…
Reference in New Issue
Block a user