Merge "Add null check after getApplicationInfo in InstantAppNotifier" am: 56d6691e8e am: f5d40d9afa

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1890539

Change-Id: If2b940c67264da914200d4dba6bc188134ad7733
This commit is contained in:
Treehugger Robot
2022-02-14 14:37:33 +00:00
committed by Automerger Merge Worker

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,