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();
|
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 (err != ActivityManager.START_SUCCESS) {
|
||||||
if (resultRecord != null) {
|
if (resultRecord != null) {
|
||||||
resultStack.sendActivityResultLocked(-1,
|
resultStack.sendActivityResultLocked(-1,
|
||||||
|
|||||||
Reference in New Issue
Block a user