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

Commit 2868ddd6 authored by Dianne Hackborn's avatar Dianne Hackborn Committed by The Android Automerger
Browse files

Fix issue #23270878: NPE in UsageStatsService while running UserManagementTest

Change-Id: I34d4fcdc103b3a6ea5c4ed78895f2fe18597237a
parent efaf82c0
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];