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
commit 56d6691e8e

View File

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