summaryrefslogtreecommitdiffstats
path: root/src/main/java/net
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2011-09-16 05:32:25 -0400
committerEvilSeph <evilseph@gmail.com>2011-09-16 05:32:25 -0400
commit72e5ea6cc3364798b1de7281f024e1ddb589cf86 (patch)
tree17dfb2e2719ddeffc0fa0db57bbd9e2b5651929f /src/main/java/net
parent85c0c1bb5118e307a04b95d9db9ae1a752c3d65c (diff)
downloadcraftbukkit-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/net')
-rw-r--r--src/main/java/net/minecraft/server/NetLoginHandler.java1
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();