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
This commit is contained in:
parent
0ba2a37eaf
commit
c0bb7ecc72
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user