mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 13:47:41 +00:00
Fix NPE
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user