mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-28 13:36:16 +01:00
Handle NPE in ThreadLoginVerifier that occurs when trying to continue using a closed socket.
This commit is contained in:
parent
9d7a03a64a
commit
955a78b8fd
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user