mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-29 21:27:40 +00:00
Fix NPE
This commit is contained in:
parent
7c02f79c22
commit
82b42fda67
@ -120,6 +120,10 @@ public class NotificationsPlugin extends Plugin implements NotificationReceiver.
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onNotificationRemoved(StatusBarNotification statusBarNotification) {
|
public void onNotificationRemoved(StatusBarNotification statusBarNotification) {
|
||||||
|
if (statusBarNotification == null) {
|
||||||
|
Log.w("onNotificationRemoved", "notification is null");
|
||||||
|
return;
|
||||||
|
}
|
||||||
String id = getNotificationKeyCompat(statusBarNotification);
|
String id = getNotificationKeyCompat(statusBarNotification);
|
||||||
NetworkPackage np = new NetworkPackage(PACKAGE_TYPE_NOTIFICATION);
|
NetworkPackage np = new NetworkPackage(PACKAGE_TYPE_NOTIFICATION);
|
||||||
np.set("id", id);
|
np.set("id", id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user