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

Commit 87106648 authored by Varun Shah's avatar Varun Shah
Browse files

Ensure the process record exists to avoid a NPE.

Bug: 397823061
Change-Id: I0496137db087f5c48e3c7739ee58f74c916db4d3
Test: atest ActivityManagerServiceTest
Test: atest VoipCallMonitorTest
Test: atest CallStyleNotificationsTest
Flag: EXEMPT bugfix
parent 2b5170fb
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -9191,9 +9191,11 @@ public final class ActiveServices {
        } else {
            synchronized (mAm.mPidsSelfLocked) {
                callerApp = mAm.mPidsSelfLocked.get(callingPid);
                if (callerApp != null) {
                    caller = callerApp.getThread();
                }
            }
        }
        if (callerApp == null) {
            throw new SecurityException(
                    "Unable to find app for caller " + caller