Merge "Add null check after getApplicationInfo in InstantAppNotifier"

This commit is contained in:
Treehugger Robot
2022-02-14 14:04:08 +00:00
committed by Gerrit Code Review

View File

@@ -234,7 +234,7 @@ public class InstantAppNotifier extends SystemUI
ApplicationInfo appInfo = ApplicationInfo appInfo =
pm.getApplicationInfo( pm.getApplicationInfo(
pkg, PackageManager.MATCH_UNINSTALLED_PACKAGES, info.userId); pkg, PackageManager.MATCH_UNINSTALLED_PACKAGES, info.userId);
if (appInfo.isInstantApp()) { if (appInfo != null && appInfo.isInstantApp()) {
postInstantAppNotif( postInstantAppNotif(
pkg, pkg,
info.userId, info.userId,