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

Commit 5f4f8d24 authored by liulvping's avatar liulvping Committed by android-build-merger
Browse files

Merge "fix NullPointerException in RegisteredServicesCache" am: 4b1a8f46

am: 506bf074

Change-Id: I0ec538fc78a512441517d1205ac3d34232ce992e
parents 5a8af8f2 506bf074
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -347,6 +347,7 @@ public abstract class RegisteredServicesCache<V> {
    @VisibleForTesting
    protected boolean inSystemImage(int callerUid) {
        String[] packages = mContext.getPackageManager().getPackagesForUid(callerUid);
        if (packages != null) {
            for (String name : packages) {
                try {
                    PackageInfo packageInfo =
@@ -358,6 +359,7 @@ public abstract class RegisteredServicesCache<V> {
                    return false;
                }
            }
        }
        return false;
    }