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

Commit 4439dcdc authored by Dianne Hackborn's avatar Dianne Hackborn Committed by Android Git Automerger
Browse files

am af75c17b: Fix issue #23270878: NPE in UsageStatsService while running UserManagementTest

* commit 'af75c17b':
  Fix issue #23270878: NPE in UsageStatsService while running UserManagementTest
parents e9de1b4c af75c17b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -848,6 +848,9 @@ public class UsageStatsService extends SystemService implements
        try {
            ParceledListSlice<ApplicationInfo> slice
                    = AppGlobals.getPackageManager().getInstalledApplications(0, userId);
            if (slice == null) {
                return new int[0];
            }
            apps = slice.getList();
        } catch (RemoteException e) {
            return new int[0];