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

Commit c3eb211b authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge "Fix NPE in BaseStatusbar in onListenerConnected"

am: ffef959c

* commit 'ffef959c':
  Fix NPE in BaseStatusbar in onListenerConnected
parents ed60fbf9 ffef959c
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -442,6 +442,10 @@ public abstract class BaseStatusBar extends SystemUI implements
        public void onListenerConnected() {
        public void onListenerConnected() {
            if (DEBUG) Log.d(TAG, "onListenerConnected");
            if (DEBUG) Log.d(TAG, "onListenerConnected");
            final StatusBarNotification[] notifications = getActiveNotifications();
            final StatusBarNotification[] notifications = getActiveNotifications();
            if (notifications == null) {
                Log.w(TAG, "onListenerConnected unable to get active notifications.");
                return;
            }
            final RankingMap currentRanking = getCurrentRanking();
            final RankingMap currentRanking = getCurrentRanking();
            mHandler.post(new Runnable() {
            mHandler.post(new Runnable() {
                @Override
                @Override