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

Commit 68a06ef9 authored by Jeff Chang's avatar Jeff Chang Committed by Android (Google) Code Review
Browse files

Merge "Attempted to fix NPE when report assistant context" into sc-dev

parents 91d89b48 385b604a
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2457,6 +2457,13 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub {
            if (referrer != null) {
                pae.extras.putParcelable(Intent.EXTRA_REFERRER, referrer);
            }
            if (!pae.activity.isAttached()) {
                // Skip directly because the caller activity may have been destroyed. If a caller
                // is waiting for the assist data, it will be notified by timeout
                // (see PendingAssistExtras#run()) and then pendingAssistExtrasTimedOut will clean
                // up the request.
                return;
            }
            if (structure != null) {
                // Pre-fill the task/activity component for all assist data receivers
                structure.setTaskId(pae.activity.getTask().mTaskId);