Fix enter command; also resolves #761

This commit is contained in:
Daniel Saukel 2020-04-18 17:32:52 +02:00
parent 88679e6a51
commit f56687f322
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}