Merge "Check appEntry is not null before dereferencing it" into sc-dev
This commit is contained in:
@@ -233,7 +233,7 @@ public class SystemUIToast implements ToastPlugin.Toast {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
final AppEntry appEntry = appState.getEntry(packageName, userId);
|
final AppEntry appEntry = appState.getEntry(packageName, userId);
|
||||||
if (appEntry.info == null
|
if (appEntry == null || appEntry.info == null
|
||||||
|| !ApplicationsState.FILTER_DOWNLOADED_AND_LAUNCHER.filterApp(appEntry)) {
|
|| !ApplicationsState.FILTER_DOWNLOADED_AND_LAUNCHER.filterApp(appEntry)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user