NotificationManager: fix crash when clicking update notification in NewPipe

This commit is contained in:
Julian Winkler
2025-02-09 16:47:13 +01:00
parent 37af37b721
commit cd9f6f5b05

View File

@@ -85,7 +85,7 @@ public class NotificationManager {
action = "".equals(action) ? null : action; action = "".equals(action) ? null : action;
className = "".equals(className) ? null : className; className = "".equals(className) ? null : className;
Intent intent = intents.remove(id); 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); intent = new Intent(action);
if (className != null) { if (className != null) {
intent.setComponent(new ComponentName(context, className)); intent.setComponent(new ComponentName(context, className));