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

Commit 53003de6 authored by Guang Zhu's avatar Guang Zhu
Browse files

Skip empty lines in test url list.

parent b9a39cd3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -55,6 +55,9 @@ public class ReliabilityTest extends ActivityInstrumentationTestCase2<Reliabilit
        //read from BufferedReader instead of populating a list in advance,
        //this will avoid excessive memory usage in case of a large list
        while((url = listReader.readLine()) != null) {
            url = url.trim();
            if(url.length() == 0)
                continue;
            start = System.currentTimeMillis();
            Log.v(LOGTAG, "Testing URL: " + url);
            updateTestStatus(url);