From cd9f6f5b0594eb20d03b6bd3ee079ac0ec876346 Mon Sep 17 00:00:00 2001 From: Julian Winkler Date: Sun, 9 Feb 2025 16:47:13 +0100 Subject: [PATCH] NotificationManager: fix crash when clicking update notification in NewPipe --- src/api-impl/android/app/NotificationManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api-impl/android/app/NotificationManager.java b/src/api-impl/android/app/NotificationManager.java index 703992c8..d4e0b311 100644 --- a/src/api-impl/android/app/NotificationManager.java +++ b/src/api-impl/android/app/NotificationManager.java @@ -85,7 +85,7 @@ public class NotificationManager { action = "".equals(action) ? null : action; className = "".equals(className) ? null : className; Intent intent = intents.remove(id); - if (intent == null || !Objects.equals(action, intent.getAction()) || !Objects.equals(className, intent.getComponent().getClassName())) { + if (intent == null || !Objects.equals(action, intent.getAction()) || !Objects.equals(className, intent.getComponent() == null ? null : intent.getComponent().getClassName())) { intent = new Intent(action); if (className != null) { intent.setComponent(new ComponentName(context, className));