Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e35e6d21 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Protect against NPE" into rvc-dev am: 2d1efb2e am: 9ebbfa47 am:...

Merge "Protect against NPE" into rvc-dev am: 2d1efb2e am: 9ebbfa47 am: 21930b97 am: 9f3a3d66

Original change: undetermined

Change-Id: I8eda1cd5256d0cd2d1e511e8b0c004b9cc5b5470
parents 94d5a8e2 9f3a3d66
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.systemui.bubbles;
package com.android.systemui.bubbles;


import android.service.notification.StatusBarNotification;
import android.service.notification.StatusBarNotification;

import com.android.internal.logging.UiEventLoggerImpl;
import com.android.internal.logging.UiEventLoggerImpl;


/**
/**
@@ -31,6 +32,10 @@ public class BubbleLoggerImpl extends UiEventLoggerImpl implements BubbleLogger
     * @param e UI event
     * @param e UI event
     */
     */
    public void log(Bubble b, UiEventEnum e) {
    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();
        StatusBarNotification sbn = b.getEntry().getSbn();
        logWithInstanceId(e, sbn.getUid(), sbn.getPackageName(), sbn.getInstanceId());
        logWithInstanceId(e, sbn.getUid(), sbn.getPackageName(), sbn.getInstanceId());
    }
    }