From 72e5ea6cc3364798b1de7281f024e1ddb589cf86 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Fri, 16 Sep 2011 05:32:25 -0400 Subject: [PATCH] Fixed NPE when a client queries a server that is unable to handle it. --- src/main/java/net/minecraft/server/NetLoginHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/minecraft/server/NetLoginHandler.java b/src/main/java/net/minecraft/server/NetLoginHandler.java index 25944dd759..305d7caa0c 100644 --- a/src/main/java/net/minecraft/server/NetLoginHandler.java +++ b/src/main/java/net/minecraft/server/NetLoginHandler.java @@ -131,6 +131,7 @@ public class NetLoginHandler extends NetHandler { } public void a(Packet254GetInfo packet254getinfo) { + if (this.networkManager.f() == null) return; // CraftBukkit - fix NPE when a client queries a server that is unable to handle it. try { String s = this.server.p + "\u00A7" + this.server.serverConfigurationManager.g() + "\u00A7" + this.server.serverConfigurationManager.h();