From bdcb5259828dccb1ea6085d82b2cb43d45b315d2 Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Tue, 4 May 2021 11:40:09 -0400 Subject: [PATCH] Add null check for app labels Test: manual Fixes: 187173056 Change-Id: I1affd901bc644597e4af7fc65c81f919c8589ed5 --- .../notification/RecentNotifyingAppsPreferenceController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/notification/RecentNotifyingAppsPreferenceController.java b/src/com/android/settings/notification/RecentNotifyingAppsPreferenceController.java index 87d25dd5cad..bd45884c87e 100644 --- a/src/com/android/settings/notification/RecentNotifyingAppsPreferenceController.java +++ b/src/com/android/settings/notification/RecentNotifyingAppsPreferenceController.java @@ -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; }