Merge "Fix potential NPE" into rvc-dev am: 4c94835d49 am: c0b9430524 am: 93132948ca

Change-Id: I7aa2ac8dc74cf4143cb08c928f95b434f5403775
This commit is contained in:
Mady Mellor
2020-04-01 15:38:42 +00:00
committed by Automerger Merge Worker

View File

@@ -1441,7 +1441,7 @@ public class BubbleStackView extends FrameLayout {
/** Expands the clicked 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
// 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.