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

Commit 9eadea58 authored by liulvping's avatar liulvping Committed by android-build-merger
Browse files

Merge "fix NullPointerException in RegisteredServicesCache" am: 4b1a8f46 am: 506bf074

am: 5f4f8d24

Change-Id: Iedcf57ee7856fb9abac459230e686a351370543d
parents 4502fa8f 5f4f8d24
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -390,6 +390,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 =
@@ -401,6 +402,7 @@ public abstract class RegisteredServicesCache<V> {
                    return false;
                }
            }
        }
        return false;
    }