mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-08-04 03:46:57 -04:00
fix NPE in MultiplayerManager
This commit is contained in:
parent
113f4f948b
commit
eac8896f3e
@ -400,6 +400,7 @@ 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 {
|
||||||
|
if (writer != null)
|
||||||
writer.close();
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user