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

Commit 3e1addff authored by Mady Mellor's avatar Mady Mellor
Browse files

Fix potential NPE

Test: treehugger
Bug: 152712039
Change-Id: I22b17976a4c1e68f3bf076b7e40f84186e664e7b
parent 89f01252
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1440,7 +1440,7 @@ public class BubbleStackView extends FrameLayout {


    /** Expands the clicked bubble. */
    /** Expands the clicked bubble. */
    public void expandBubble(Bubble bubble) {
    public void expandBubble(Bubble bubble) {
        if (bubble.equals(mBubbleData.getSelectedBubble())) {
        if (bubble != null && bubble.equals(mBubbleData.getSelectedBubble())) {
            // If the bubble we're supposed to expand is the selected bubble, that means the
            // If the bubble we're supposed to expand is the selected bubble, that means the
            // overflow bubble is currently expanded. Don't tell BubbleData to set this bubble as
            // overflow bubble is currently expanded. Don't tell BubbleData to set this bubble as
            // selected, since it already is. Just call the stack's setSelectedBubble to expand it.
            // selected, since it already is. Just call the stack's setSelectedBubble to expand it.