Merge "[ActivityManager] Fix NPE when start activity" into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1289a3b2d3
@@ -1314,7 +1314,6 @@ public final class ActivityStackSupervisor implements DisplayListener {
|
||||
}
|
||||
}
|
||||
}
|
||||
ActivityStack resultStack = resultRecord == null ? null : resultRecord.task.stack;
|
||||
|
||||
final int launchFlags = intent.getFlags();
|
||||
|
||||
@@ -1391,6 +1390,8 @@ public final class ActivityStackSupervisor implements DisplayListener {
|
||||
}
|
||||
}
|
||||
|
||||
final ActivityStack resultStack = resultRecord == null ? null : resultRecord.task.stack;
|
||||
|
||||
if (err != ActivityManager.START_SUCCESS) {
|
||||
if (resultRecord != null) {
|
||||
resultStack.sendActivityResultLocked(-1,
|
||||
|
||||
Reference in New Issue
Block a user