Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe66cdae authored by Automerger Merge Worker's avatar Automerger Merge Worker Committed by Android (Google) Code Review
Browse files

Merge "Merge "Prevent NPE while finishing activity" into rvc-dev am:...

Merge "Merge "Prevent NPE while finishing activity" into rvc-dev am: 1dbee3e3 am: b9bd2da6" into rvc-d1-dev-plus-aosp
parents 72cb98e4 0bcc0475
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1685,6 +1685,11 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
        final NeededUriGrants resultGrants = collectGrants(resultData, r.resultTo);

        synchronized (mGlobalLock) {
            // Sanity check in case activity was removed before entering global lock.
            if (!r.isInHistory()) {
                return true;
            }

            // Keep track of the root activity of the task before we finish it
            final Task tr = r.getTask();
            final ActivityRecord rootR = tr.getRootActivity();