Merge "Fix an obscure NPE" into rvc-dev

This commit is contained in:
Mady Mellor
2020-06-12 18:20:44 +00:00
committed by Android (Google) Code Review

View File

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