Merge "Protect against NPE thrown by flaky integration test"

This commit is contained in:
TreeHugger Robot
2020-10-20 00:43:46 +00:00
committed by Android (Google) Code Review

View File

@@ -2246,9 +2246,10 @@ public class BubbleStackView extends FrameLayout
}
// Stop suppressing the dot now that the flyout has morphed into the dot.
bubble.getIconView().removeDotSuppressionFlag(
BadgedImageView.SuppressionFlag.FLYOUT_VISIBLE);
if (bubble.getIconView() != null) {
bubble.getIconView().removeDotSuppressionFlag(
BadgedImageView.SuppressionFlag.FLYOUT_VISIBLE);
}
// Hide the stack after a delay, if needed.
updateTemporarilyInvisibleAnimation(false /* hideImmediately */);
};