Merge "[ActivityManager] Fix NPE when start activity"
This commit is contained in:
@@ -1315,7 +1315,6 @@ public final class ActivityStackSupervisor implements DisplayListener {
|
||||
}
|
||||
}
|
||||
}
|
||||
ActivityStack resultStack = resultRecord == null ? null : resultRecord.task.stack;
|
||||
|
||||
final int launchFlags = intent.getFlags();
|
||||
|
||||
@@ -1392,6 +1391,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