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

Handle NPE in ThreadLoginVerifier that occurs when trying to continue using a closed socket.

Dieser Commit ist enthalten in:
EvilSeph 2011-04-29 03:14:16 -04:00
Ursprung 9d7a03a64a
Commit 955a78b8fd

Datei anzeigen

@ -36,6 +36,10 @@ class ThreadLoginVerifier extends Thread {
bufferedreader.close();
if (s1.equals("YES")) {
// CraftBukkit start
if (this.netLoginHandler.getSocket() == null) {
return;
}
PlayerPreLoginEvent event = new PlayerPreLoginEvent(this.loginPacket.name, this.netLoginHandler.getSocket().getInetAddress());
server.getPluginManager().callEvent(event);