Merge "Add null check for app labels" into sc-dev am: cc28a0826e am: d1bd4abb65

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/14426523

Change-Id: If9c4160367c669e629664e7ef17e4420c0cb346a
This commit is contained in:
TreeHugger Robot
2021-05-04 17:34:30 +00:00
committed by Automerger Merge Worker

View File

@@ -236,7 +236,7 @@ public class RecentNotifyingAppsPreferenceController extends AbstractPreferenceC
final String pkgName = app.getPackage(); final String pkgName = app.getPackage();
final ApplicationsState.AppEntry appEntry = final ApplicationsState.AppEntry appEntry =
mApplicationsState.getEntry(app.getPackage(), app.getUserId()); mApplicationsState.getEntry(app.getPackage(), app.getUserId());
if (appEntry == null) { if (appEntry == null || appEntry.label == null) {
continue; continue;
} }