Fixed a crash when dumping groupmanager

Change-Id: Id5ffb9e61c1a17d5bd7d8f58024bf84c0fbb6781
Fixes: 28706404
This commit is contained in:
Selim Cinek
2016-05-12 11:24:07 -07:00
parent 18e9f13b24
commit 60ca7879ec

View File

@@ -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;