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

This commit is contained in:
Automerger Merge Worker
2022-02-14 14:55:40 +00:00
committed by Android (Google) Code Review

View File

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