3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-19 04:50:06 +01:00

SPIGOT-5867, MC-193339: NPE during shutdown when rcon enabled with no password

Dieser Commit ist enthalten in:
md_5 2020-07-03 09:23:33 +10:00
Ursprung 068618eb5b
Commit 94eff632f1
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: E8E901AC7C617C11

Datei anzeigen

@ -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);
}