SteamWar/BungeeCore
Archiviert
13
2

Change reader null message
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-10-07 14:14:41 +02:00
Ursprung befae2d821
Commit 56cd61623d

Datei anzeigen

@ -211,6 +211,8 @@ public abstract class Node {
if(!process.waitFor(1, TimeUnit.SECONDS)) if(!process.waitFor(1, TimeUnit.SECONDS))
throw new IOException(hostname + " timeout"); throw new IOException(hostname + " timeout");
try (BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()))) { try (BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()))) {
if(reader == null)
throw new IOException("Why reader null? " + process.getInputStream());
calcLoadLimit(reader, reader); calcLoadLimit(reader, reader);
} }
} catch (IOException e) { } catch (IOException e) {