diff --git a/src/main/java/world/bentobox/bentobox/database/objects/Players.java b/src/main/java/world/bentobox/bentobox/database/objects/Players.java index 496511038..2a3e6dbb7 100644 --- a/src/main/java/world/bentobox/bentobox/database/objects/Players.java +++ b/src/main/java/world/bentobox/bentobox/database/objects/Players.java @@ -344,7 +344,10 @@ public class Players implements DataObject, MetaDataAble { */ public void addToPendingKick(World world) { - this.pendingKicks.add(Util.getWorld(world).getName()); + World w = Util.getWorld(world); + if (w != null) { + this.pendingKicks.add(w.getName()); + } } /**