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

Commit a6205749 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Avoid throwing when forceRefresh() missing server."

parents c016e0f8 f055829f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -45,7 +45,8 @@ public class NtpTrustedTime implements TrustedTime {
    /** {@inheritDoc} */
    public boolean forceRefresh() {
        if (mNtpServer == null) {
            throw new IllegalStateException("Missing NTP server");
            // missing server, so no trusted time available
            return false;
        }

        final SntpClient client = new SntpClient();