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

Commit 844bfb36 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix null handling"

parents fc2582c0 83351437
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -595,12 +595,13 @@ public class NotificationBackend {
    }

    public NotificationListenerFilter getListenerFilter(ComponentName cn, int userId) {
        NotificationListenerFilter nlf = null;
        try {
            return sINM.getListenerFilter(cn, userId);
            nlf = sINM.getListenerFilter(cn, userId);
        } catch (Exception e) {
            Log.w(TAG, "Error calling NoMan", e);
        }
        return new NotificationListenerFilter();
        return nlf != null ? nlf : new NotificationListenerFilter();
    }

    public void setListenerFilter(ComponentName cn, int userId, NotificationListenerFilter nlf) {