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

Commit 0e699f70 authored by Varun Shah's avatar Varun Shah
Browse files

Avoid NPE when Activity Manager calls notifyCleartextNetwork.

Bug: 122501647
Test: n/a (fix for a rare race condition)
Change-Id: I4a645e07394dc028abbb10971dc7d49f417b5abc
parent b3f28003
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1672,7 +1672,7 @@ public class ActivityManagerService extends IActivityManager.Stub
                synchronized (mPidsSelfLocked) {
                    for (int i = 0; i < mPidsSelfLocked.size(); i++) {
                        final ProcessRecord p = mPidsSelfLocked.valueAt(i);
                        if (p.uid == uid) {
                        if (p.uid == uid && p.thread != null) {
                            try {
                                p.thread.notifyCleartextNetwork(firstPacket);
                            } catch (RemoteException ignored) {