commit | 56d6691e8e5a2f0b54e5cd35207e98e89b1683df | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Mon Feb 14 14:04:08 2022 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Feb 14 14:04:08 2022 +0000 |
tree | 6cc1c81c6f5cd850eba1a159ff5ff490b88a3c5b | |
parent | e032bc4139b1d740a0d0876f6c0bdcfe9160010d [diff] | |
parent | c0bb7ecc72c2809b80a560e37ff367b9c8b07327 [diff] |
Merge "Add null check after getApplicationInfo in InstantAppNotifier"
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/InstantAppNotifier.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/InstantAppNotifier.java index e58ea7b..eddc347 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/InstantAppNotifier.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/InstantAppNotifier.java
@@ -234,7 +234,7 @@ ApplicationInfo appInfo = pm.getApplicationInfo( pkg, PackageManager.MATCH_UNINSTALLED_PACKAGES, info.userId); - if (appInfo.isInstantApp()) { + if (appInfo != null && appInfo.isInstantApp()) { postInstantAppNotif( pkg, info.userId,