Merge "Check appEntry is not null before dereferencing it" into sc-dev am: 6d02ec44f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14156578 Change-Id: I4a66c8583dc65e1f3cfca4f0b2f1f47098281bbe
This commit is contained in:
@@ -233,7 +233,7 @@ public class SystemUIToast implements ToastPlugin.Toast {
|
||||
return null;
|
||||
}
|
||||
final AppEntry appEntry = appState.getEntry(packageName, userId);
|
||||
if (appEntry.info == null
|
||||
if (appEntry == null || appEntry.info == null
|
||||
|| !ApplicationsState.FILTER_DOWNLOADED_AND_LAUNCHER.filterApp(appEntry)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user