diff --git a/src/main/java/cactusServer/models/Instances.java b/src/main/java/cactusServer/models/Instances.java index fb5ad77..7e669eb 100644 --- a/src/main/java/cactusServer/models/Instances.java +++ b/src/main/java/cactusServer/models/Instances.java @@ -118,6 +118,9 @@ public Player destroyPlayer(String playerId) { Player player = playerMap.get(playerId); + if (player == null) { + return null; + } player.destroy(); return playerMap.remove(playerId); }