Add null check

Test: manual
Fixes: 161386023
Change-Id: Id4b3de8fd87f6c809dfcc18630af21fe0609c3e0
This commit is contained in:
Julia Reynolds
2020-08-19 09:45:00 -04:00
parent 7afb1d7a2b
commit f253250883

View File

@@ -72,6 +72,9 @@ public class AppNotificationPreferenceController extends AppInfoPreferenceContro
private CharSequence getNotificationSummary(ApplicationsState.AppEntry appEntry, private CharSequence getNotificationSummary(ApplicationsState.AppEntry appEntry,
Context context, NotificationBackend backend) { Context context, NotificationBackend backend) {
if (appEntry == null) {
return "";
}
NotificationBackend.AppRow appRow = NotificationBackend.AppRow appRow =
backend.loadAppRow(context, context.getPackageManager(), appEntry.info); backend.loadAppRow(context, context.getPackageManager(), appEntry.info);
return getNotificationSummary(appRow, context); return getNotificationSummary(appRow, context);