Merge "Avoid SystemUI crash due to NPE"
This commit is contained in:
@ -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) {
|
||||||
|
Reference in New Issue
Block a user