summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit
diff options
context:
space:
mode:
authorErik Broes <erikbroes@grum.nl>2011-02-04 23:02:52 +0100
committerErik Broes <erikbroes@grum.nl>2011-02-04 23:02:52 +0100
commitbe10e54235aa29d90ba52bc8fd98825081a68b13 (patch)
tree886fb628026594165743c139ea750cb49e4177fd /src/main/java/org/bukkit
parent059d23b4c9453acde8e6bf0ca7d08a9dd4779b50 (diff)
downloadcraftbukkit-be10e54235aa29d90ba52bc8fd98825081a68b13.tar
craftbukkit-be10e54235aa29d90ba52bc8fd98825081a68b13.tar.gz
craftbukkit-be10e54235aa29d90ba52bc8fd98825081a68b13.tar.lz
craftbukkit-be10e54235aa29d90ba52bc8fd98825081a68b13.tar.xz
craftbukkit-be10e54235aa29d90ba52bc8fd98825081a68b13.zip
Fixed NPE on missing kick-reason - http://redmine.bukkit.org/issues/359
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
index 27bab58d..a62de87f 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
@@ -103,7 +103,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
}
public void kickPlayer(String message) {
- entity.a.a(message);
+ entity.a.a(message == null ? "" : message);
}
public void setCompassTarget(Location loc) {