From 57a42d2a93fb66fdcea6f126bb37a6b172bc9ebd Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Mon, 27 Feb 2023 16:24:21 -0500 Subject: [PATCH] Fix settings crash Test: post notification with an action with a null title, view notification widget Fixes: 250836823 Change-Id: I56707c628b3fcc7d6823e4b3736dd26e3d98dfa7 --- .../settings/notification/history/NotificationStation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/notification/history/NotificationStation.java b/src/com/android/settings/notification/history/NotificationStation.java index 3ed8cdfd9b4..3b27e1947d2 100644 --- a/src/com/android/settings/notification/history/NotificationStation.java +++ b/src/com/android/settings/notification/history/NotificationStation.java @@ -581,7 +581,7 @@ public class NotificationStation extends SettingsPreferenceFragment { .append(bold(getString( R.string.notification_log_details_title))) .append(delim) - .append(action.title); + .append(action.title != null ? action.title : ""); if (action.actionIntent != null) { sb.append("\n ") .append(bold(getString(