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

Commit bec7d63c authored by Daniel Sandler's avatar Daniel Sandler
Browse files

Fix NPE.

I believe this is the result of a race condition involving multiple tickers under load. The fix simply guards against the null pointer.

Bug: 3448450
Change-Id: Icc78c89890f0a41c574f7077b1b450e9fd4ca28b
parent a54e8725
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -158,7 +158,9 @@ public class TabletTicker
    private void advance() {
        // Out with the old...
        if (mCurrentView != null) {
            if (mWindow != null) {
                mWindow.removeView(mCurrentView);
            }
            mCurrentView = null;
            mCurrentKey = null;
            mCurrentNotification = null;