mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Fixed a possible NPE in GameController.
This commit is contained in:
parent
4403934163
commit
ffcdb51d1b
1 changed files with 1 additions and 1 deletions
|
@ -675,7 +675,7 @@ public class GameController implements GameCallback {
|
|||
if (players != null && players.size() > 0) {
|
||||
controller = game.getPlayer(players.get(0));
|
||||
}
|
||||
if (controller == null) {
|
||||
if (controller == null || game.getStep() == null || game.getStep().getType() == null) {
|
||||
return;
|
||||
}
|
||||
final String message = new StringBuilder(game.getStep().getType().toString()).append(" - Waiting for ").append(controller.getName()).toString();
|
||||
|
|
Loading…
Reference in a new issue