From 60ca7879ec1fa7164c6fed95413d40313423fabb Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Thu, 12 May 2016 11:24:07 -0700 Subject: [PATCH] Fixed a crash when dumping groupmanager Change-Id: Id5ffb9e61c1a17d5bd7d8f58024bf84c0fbb6781 Fixes: 28706404 --- .../systemui/statusbar/phone/NotificationGroupManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationGroupManager.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationGroupManager.java index d2326d2c2d7f6..270b6edbe367f 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationGroupManager.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationGroupManager.java @@ -459,7 +459,8 @@ public class NotificationGroupManager implements HeadsUpManager.OnHeadsUpChanged @Override public String toString() { - String result = " summary:\n " + summary.notification; + String result = " summary:\n " + + (summary != null ? summary.notification : "null"); result += "\n children size: " + children.size(); for (NotificationData.Entry child : children) { result += "\n " + child.notification;