mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-12 09:51:12 +01:00
SPIGOT-5867, MC-193339: NPE during shutdown when rcon enabled with no password
This commit is contained in:
parent
068618eb5b
commit
94eff632f1
1 changed files with 11 additions and 0 deletions
11
nms-patches/RemoteControlListener.patch
Normal file
11
nms-patches/RemoteControlListener.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/net/minecraft/server/RemoteControlListener.java
|
||||||
|
+++ b/net/minecraft/server/RemoteControlListener.java
|
||||||
|
@@ -109,7 +109,7 @@
|
||||||
|
RemoteControlListener.LOGGER.debug("closeSocket: {}", serversocket);
|
||||||
|
|
||||||
|
try {
|
||||||
|
- serversocket.close();
|
||||||
|
+ if (serversocket != null) serversocket.close(); // CraftBukkit - SPIGOT-5867, MC-193339: NPE during shutdown if no password
|
||||||
|
} catch (IOException ioexception) {
|
||||||
|
RemoteControlListener.LOGGER.warn("Failed to close socket", ioexception);
|
||||||
|
}
|
Loading…
Reference in a new issue