Fix possible NPE

Test: treehugger
Bug: 159754859
Change-Id: I6de78cd0b7e27eaeab8d1673f12aa948d93f603a
This commit is contained in:
Mady Mellor
2020-06-23 18:32:05 -07:00
parent 24804d2a8f
commit e1ee90edbf

View File

@@ -1898,7 +1898,7 @@ public class BubbleStackView extends FrameLayout
AnimatableScaleMatrix.getAnimatableValueForScaleFactor(1f),
mScaleInSpringConfig)
.addUpdateListener((target, values) -> {
if (mExpandedBubble.getIconView() == null) {
if (mExpandedBubble == null || mExpandedBubble.getIconView() == null) {
return;
}
mExpandedViewContainerMatrix.postTranslate(