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

Commit 8b707fbf authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android Git Automerger
Browse files

am 538f288c: am dfb50d58: am 9fdf4e1b: am 688efe5d: am 87920455: Merge "Fix...

am 538f288c: am dfb50d58: am 9fdf4e1b: am 688efe5d: am 87920455: Merge "Fix NPE in AppOpsService" into mnc-dev

* commit '538f288c':
  Fix NPE in AppOpsService
parents 21d1ff5f 538f288c
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1718,11 +1718,15 @@ public class AppOpsService extends IAppOpsService.Stub {
    }

    private static String[] getPackagesForUid(int uid) {
        String[] packageNames = null;
        try {
            return AppGlobals.getPackageManager().getPackagesForUid(uid);
            packageNames= AppGlobals.getPackageManager().getPackagesForUid(uid);
        } catch (RemoteException e) {
            /* ignore - local call */
        }
        if (packageNames == null) {
            return EmptyArray.STRING;
        }
        return packageNames;
    }
}