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

Commit f0aff306 authored by George Mount's avatar George Mount
Browse files

Fix NPE in TextClock.

Fixes: 111901732
Test: Ran TextClockTest cts
Change-Id: Icaf7a7f6e3985bd58e22f74588e95d8a02b52187
parent 0dd5e701
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -190,7 +190,10 @@ public class TextClock extends TextView {
            long now = SystemClock.uptimeMillis();
            long next = now + (1000 - now % 1000);

            getHandler().postAtTime(mTicker, next);
            Handler handler = getHandler();
            if (handler != null) {
                handler.postAtTime(mTicker, next);
            }
        }
    };