diff --git a/core/src/main/java/de/erethon/dungeonsxl/command/EnterCommand.java b/core/src/main/java/de/erethon/dungeonsxl/command/EnterCommand.java index ffd083f9..80f22cd9 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/command/EnterCommand.java +++ b/core/src/main/java/de/erethon/dungeonsxl/command/EnterCommand.java @@ -69,7 +69,7 @@ public class EnterCommand extends DCommand { return; } - if (joining.getGame() != null) { + if (joining != null && joining.getGame() != null) { MessageUtil.sendMessage(sender, DMessage.ERROR_LEAVE_GAME.getMessage()); return; }