diff options
| author | 2021-11-12 13:51:37 +0100 | |
|---|---|---|
| committer | 2022-02-13 21:08:31 +0000 | |
| commit | c0bb7ecc72c2809b80a560e37ff367b9c8b07327 (patch) | |
| tree | 6e16aa2fef42c2982348e350120418eb730747e3 | |
| parent | 0ba2a37eafd802d240e602bfdc74fc4cfe0c07cd (diff) | |
Add null check after getApplicationInfo in InstantAppNotifier
getApplicationInfo can return null, so check return value before
access.
Fixes: 206007136
Test: N/A
Change-Id: Iaab7ba41f46b2d6caa7d43add4689228230d5901
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/notification/InstantAppNotifier.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 e58ea7b8b5f3..eddc347dad45 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 @@ 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, |