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

Commit 13fc878e authored by jorgegil@google.com's avatar jorgegil@google.com Committed by Jorge Gil
Browse files

Add null check before using mHeadsUpManager

Fixes NPE in NotificationGroupManager.shouldIsolate when a HeadsUpManager
was never set.

Bug: 137139561
Test: atest SystemUITests
Change-Id: I906af36ceaa9b604941dc28ef9816d4b86b7343c
parent 95eab8ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -464,7 +464,7 @@ public class NotificationGroupManager implements OnHeadsUpChangedListener, State
        if (!sbn.isGroup() || sbn.getNotification().isGroupSummary()) {
            return false;
        }
        if (!mHeadsUpManager.isAlerting(entry.key)) {
        if (mHeadsUpManager != null && !mHeadsUpManager.isAlerting(entry.key)) {
            return false;
        }
        return (sbn.getNotification().fullScreenIntent != null