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