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

Commit b9f5e28e authored by Justin Weir's avatar Justin Weir
Browse files

Fix NPE

Fixes: 385993838
Test: Presubmits will suffice
Flag: EXEMPT trivial bug fix
Change-Id: I7ad8395283228b8cfbec67262fd267391f88d6ed
parent b8617728
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2253,7 +2253,8 @@ public final class NotificationPanelViewController implements ShadeSurface, Dump
    }

    private boolean isPanelVisibleBecauseOfHeadsUp() {
        boolean headsUpVisible = mHeadsUpManager.hasPinnedHeadsUp() || mHeadsUpAnimatingAway;
        boolean headsUpVisible = (mHeadsUpManager != null && mHeadsUpManager.hasPinnedHeadsUp())
                || mHeadsUpAnimatingAway;
        return headsUpVisible && mBarState == StatusBarState.SHADE;
    }