Add null check for app labels

Test: manual
Fixes: 187173056
Change-Id: I1affd901bc644597e4af7fc65c81f919c8589ed5
This commit is contained in:
Julia Reynolds
2021-05-04 11:40:09 -04:00
parent c16c0d4628
commit bdcb525982

View File

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