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

Commit b8526bfe authored by Mike Lockwood's avatar Mike Lockwood
Browse files

gps: Don't crash if no XTRA servers are specified.

parent b8adcad6
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -70,12 +70,12 @@ public class GpsXtraDownloader {
            if (server1 != null) mXtraServers[count++] = server1;
            if (server2 != null) mXtraServers[count++] = server2;
            if (server3 != null) mXtraServers[count++] = server3;
        }

            // randomize first server
            Random random = new Random();
            mNextServerIndex = random.nextInt(count);
        }       
    }

    byte[] downloadXtraData() {
        String proxyHost = Proxy.getHost(mContext);