Skip to content

Commit b4ae2f1

Browse files
Jean-Baptiste QueruAndroid Code Review
authored andcommitted
Merge "frameworks/base: Handle null from topRunningNonDelayedActivityLocked"
2 parents 9084631 + d6499dc commit b4ae2f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/java/com/android/server/am/ActivityManagerService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3410,7 +3410,7 @@ private final int startActivityUncheckedLocked(HistoryRecord r,
34103410
// being started, which means not bringing it to the front
34113411
// if the caller is not itself in the front.
34123412
HistoryRecord curTop = topRunningNonDelayedActivityLocked(notTop);
3413-
if (curTop.task != taskTop.task) {
3413+
if (curTop != null && curTop.task != taskTop.task) {
34143414
r.intent.addFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT);
34153415
boolean callerAtFront = sourceRecord == null
34163416
|| curTop.task == sourceRecord.task;

0 commit comments

Comments
 (0)