Merge "Avoid SystemUI crash due to NPE"

This commit is contained in:
Chris Wren
2014-05-08 21:00:20 +00:00
committed by Gerrit Code Review

View File

@ -841,6 +841,9 @@ public abstract class BaseStatusBar extends SystemUI implements
} }
protected void addNotificationViews(NotificationData.Entry entry) { protected void addNotificationViews(NotificationData.Entry entry) {
if (entry == null) {
return;
}
// Add the expanded view and icon. // Add the expanded view and icon.
int pos = mNotificationData.add(entry); int pos = mNotificationData.add(entry);
if (DEBUG) { if (DEBUG) {