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

Commit 7b7a6dc7 authored by William Roberts's avatar William Roberts
Browse files

Correcting NULL pointer when callerApp is not set

Change-Id: I7252479f4e456aa9da4678dce40f77c60629d469
parent eccf4c58
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -11521,8 +11521,12 @@ public final class ActivityManagerService extends ActivityManagerNative
                        "Receiver requested to register for user " + userId
                        + " was previously registered for user " + rl.userId);
            }
            boolean isSystem = callerApp != null ?
                    (callerApp.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0 : false;
            BroadcastFilter bf = new BroadcastFilter(filter, rl, callerPackage,
                    permission, callingUid, userId, (callerApp.info.flags & ApplicationInfo.FLAG_SYSTEM) != 0);
                    permission, callingUid, userId, isSystem);
            rl.add(bf);
            if (!bf.debugCheck()) {
                Slog.w(TAG, "==> For Dynamic broadast");