mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-11 15:57:42 +00:00
Replace null returns from update checks with ""
This commit is contained in:
1 parent
e373ce7860
commit
7a1420e698
1 file changed
+1
@@ -45,6 +45,7 @@ public class CCUpdateChecker
|
||||
BufferedReader read = new BufferedReader(new InputStreamReader(conn.getInputStream()));
|
||||
String ret = read.readLine();
|
||||
read.close();
|
||||
if(ret == null) ret = "";
|
||||
handler.apply(ret);
|
||||
} catch (SocketTimeoutException ignored) {}
|
||||
catch (UnknownHostException ignored) {}
|
||||
|
||||
Reference in new issue
Block a user