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

This commit is contained in:
EvilSeph 2011-04-29 03:14:16 -04:00
parent 9d7a03a64a
commit 955a78b8fd

View File

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