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

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

Merge "Fix NPE in TextClock."

parents 4e7c6b90 f0aff306
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);
            }
        }
    };