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

Commit f055829f authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Avoid throwing when forceRefresh() missing server.

Bug: 4377651
Change-Id: Ia950a1e62d39ce9148827ebb4535f6441911b195
parent b969d2d9
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();