diff options
author | EvilSeph <evilseph@gmail.com> | 2011-09-16 05:32:25 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2011-09-16 05:32:25 -0400 |
commit | 72e5ea6cc3364798b1de7281f024e1ddb589cf86 (patch) | |
tree | 17dfb2e2719ddeffc0fa0db57bbd9e2b5651929f /src/main/java | |
parent | 85c0c1bb5118e307a04b95d9db9ae1a752c3d65c (diff) | |
download | craftbukkit-72e5ea6cc3364798b1de7281f024e1ddb589cf86.tar craftbukkit-72e5ea6cc3364798b1de7281f024e1ddb589cf86.tar.gz craftbukkit-72e5ea6cc3364798b1de7281f024e1ddb589cf86.tar.lz craftbukkit-72e5ea6cc3364798b1de7281f024e1ddb589cf86.tar.xz craftbukkit-72e5ea6cc3364798b1de7281f024e1ddb589cf86.zip |
Fixed NPE when a client queries a server that is unable to handle it.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/net/minecraft/server/NetLoginHandler.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/NetLoginHandler.java b/src/main/java/net/minecraft/server/NetLoginHandler.java index 25944dd7..305d7caa 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(); |