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

Commit 2ce5265e authored by Adam Skory's avatar Adam Skory Committed by Android Git Automerger
Browse files

am 3890f854: Merge "Fix NPE in ActivityManagerService" into klp-dev

* commit '3890f854':
  Fix NPE in ActivityManagerService
parents 18e1524f 3890f854
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -8062,12 +8062,10 @@ public final class ActivityManagerService extends ActivityManagerNative
            if (activity == null) {
                Slog.w(TAG, "getAssistContextExtras error: no resumed activity");
                validActivity = false;
            }
            if (activity.app == null || activity.app.thread == null) {
            } else if (activity.app == null || activity.app.thread == null) {
                Slog.w(TAG, "getAssistContextExtras error: no process for " + activity);
                validActivity = false;
            }
            if (activity.app.pid == Binder.getCallingPid()) {
            } else if (activity.app.pid == Binder.getCallingPid()) {
                Slog.w(TAG, "getAssistContextExtras error: request process same as " + activity);
                validActivity = false;
            }