Merge "Add null check for app labels" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-05-04 17:03:37 +00:00
committed by Android (Google) Code Review

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;
} }