Merge "Fix an obscure NPE" into rvc-dev am: fe96fa8b19

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11844113

Change-Id: I95d531fea84c90efa575ab9dda9e3ee134388cf8
This commit is contained in:
Mady Mellor
2020-06-12 18:31:42 +00:00
committed by Automerger Merge Worker

View File

@@ -163,6 +163,11 @@ public class BubbleExpandedView extends LinearLayout {
Log.d(TAG, "onActivityViewReady: calling startActivity, " Log.d(TAG, "onActivityViewReady: calling startActivity, "
+ "bubble=" + getBubbleKey()); + "bubble=" + getBubbleKey());
} }
if (mActivityView == null) {
mBubbleController.removeBubble(getBubbleKey(),
BubbleController.DISMISS_INVALID_INTENT);
return;
}
try { try {
if (!mIsOverflow && mBubble.usingShortcutInfo()) { if (!mIsOverflow && mBubble.usingShortcutInfo()) {
options.setApplyActivityFlagsForBubbles(true); options.setApplyActivityFlagsForBubbles(true);