fix NPE in MultiplayerManager
This commit is contained in:
@@ -400,7 +400,8 @@ public final class MultiplayerManager {
|
|||||||
onExit.fireEvent(new CatoExitEvent(this, CatoExitEvent.EXIT_CODE_INTERRUPTED));
|
onExit.fireEvent(new CatoExitEvent(this, CatoExitEvent.EXIT_CODE_INTERRUPTED));
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
writer.close();
|
if (writer != null)
|
||||||
|
writer.close();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
LOG.log(Level.WARNING, "Failed to close cato stdin writer", e);
|
LOG.log(Level.WARNING, "Failed to close cato stdin writer", e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user