Merge "Prevent NPE in startActivityUnchecked" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
45a5adadbd
@@ -1059,7 +1059,7 @@ class ActivityStarter {
|
||||
// We didn't do anything... but it was needed (a.k.a., client don't use that
|
||||
// intent!) And for paranoia, make sure we have correctly resumed the top activity.
|
||||
resumeTargetStackIfNeeded();
|
||||
if (outActivity.length > 0) {
|
||||
if (outActivity != null && outActivity.length > 0) {
|
||||
outActivity[0] = reusedActivity;
|
||||
}
|
||||
return START_TASK_TO_FRONT;
|
||||
|
||||
Reference in New Issue
Block a user