Merge "Fix NPE in LauncherAppsService.shouldShowHiddenApp()"

This commit is contained in:
TreeHugger Robot
2018-11-15 23:28:23 +00:00
committed by Android (Google) Code Review

View File

@@ -362,7 +362,7 @@ public class LauncherAppsService extends SystemService {
}
private static boolean shouldShowHiddenApp(ApplicationInfo appInfo) {
if (appInfo.isSystemApp() || appInfo.isUpdatedSystemApp()) {
if (appInfo == null || appInfo.isSystemApp() || appInfo.isUpdatedSystemApp()) {
return false;
}
return true;