diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleLoggerImpl.java b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleLoggerImpl.java index 0327cb4b29193..c5faae0d703e1 100644 --- a/packages/SystemUI/src/com/android/systemui/bubbles/BubbleLoggerImpl.java +++ b/packages/SystemUI/src/com/android/systemui/bubbles/BubbleLoggerImpl.java @@ -17,6 +17,7 @@ package com.android.systemui.bubbles; import android.service.notification.StatusBarNotification; + import com.android.internal.logging.UiEventLoggerImpl; /** @@ -31,6 +32,10 @@ public class BubbleLoggerImpl extends UiEventLoggerImpl implements BubbleLogger * @param e UI event */ public void log(Bubble b, UiEventEnum e) { + if (b.getEntry() == null) { + // Added from persistence -- TODO log this with specific event? + return; + } StatusBarNotification sbn = b.getEntry().getSbn(); logWithInstanceId(e, sbn.getUid(), sbn.getPackageName(), sbn.getInstanceId()); }