Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a31617d2 authored by Mady Mellor's avatar Mady Mellor
Browse files

Fix NPE for auto-bubble notifications

Test: manual - have notif based bubbles, dismiss
Fixes: 128525044
Change-Id: I94cc9c44c8ee2ae70a8f8aa2e1c98710f10e5358
parent 090f646c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -426,7 +426,9 @@ public class BubbleStackView extends FrameLayout {

        if (reason == BubbleController.DISMISS_USER_GESTURE) {
            Notification.BubbleMetadata bubbleMetadata = bubble.entry.getBubbleMetadata();
            PendingIntent deleteIntent = bubbleMetadata.getDeleteIntent();
            PendingIntent deleteIntent = bubbleMetadata != null
                    ? bubbleMetadata.getDeleteIntent()
                    : null;
            if (deleteIntent != null) {
                try {
                    deleteIntent.send();