am 8100b3fa: am 4439dcdc: am af75c17b: Fix issue #23270878: NPE in UsageStatsService while running UserManagementTest
* commit '8100b3fa8be63b5c3525997b35d216edfc0cd7e7': Fix issue #23270878: NPE in UsageStatsService while running UserManagementTest
This commit is contained in:
@@ -848,6 +848,9 @@ public class UsageStatsService extends SystemService implements
|
|||||||
try {
|
try {
|
||||||
ParceledListSlice<ApplicationInfo> slice
|
ParceledListSlice<ApplicationInfo> slice
|
||||||
= AppGlobals.getPackageManager().getInstalledApplications(0, userId);
|
= AppGlobals.getPackageManager().getInstalledApplications(0, userId);
|
||||||
|
if (slice == null) {
|
||||||
|
return new int[0];
|
||||||
|
}
|
||||||
apps = slice.getList();
|
apps = slice.getList();
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
return new int[0];
|
return new int[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user