diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-02-04 23:02:52 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-02-04 23:02:52 +0100 |
commit | be10e54235aa29d90ba52bc8fd98825081a68b13 (patch) | |
tree | 886fb628026594165743c139ea750cb49e4177fd /src/main/java/org/bukkit | |
parent | 059d23b4c9453acde8e6bf0ca7d08a9dd4779b50 (diff) | |
download | craftbukkit-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.java | 2 |
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) { |