Merge "Add null check"

This commit is contained in:
TreeHugger Robot
2020-08-21 05:22:17 +00:00
committed by Android (Google) Code Review

View File

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