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

Commit 538f288c authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android Git Automerger
Browse files

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

* commit 'dfb50d58':
  Fix NPE in AppOpsService
parents 8622d9ea dfb50d58
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;
    }
}