From be10e54235aa29d90ba52bc8fd98825081a68b13 Mon Sep 17 00:00:00 2001 From: Erik Broes Date: Fri, 4 Feb 2011 23:02:52 +0100 Subject: [PATCH] Fixed NPE on missing kick-reason - http://redmine.bukkit.org/issues/359 --- src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 27bab58de0..a62de87fa2 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) {