Fixed NPE on freeze fix in non started games

This commit is contained in:
Oleg Agafonov 2020-09-18 22:00:11 +04:00
parent 0f4cf84d93
commit a95e92455c

View file

@ -1262,7 +1262,11 @@ public class GameController implements GameCallback {
sb.append("<font color='red'>FIX command called by ").append(user.getName()).append("</font>");
sb.append("<font size='-2'>"); // font resize start for all next logs
sb.append("<br>Game ID: ").append(game.getId());
if (game.getTurn().getPhaseType() == null) {
sb.append("<br>Phase: not started").append(" Step: not started");
} else {
sb.append("<br>Phase: ").append(game.getTurn().getPhaseType().toString()).append(" Step: ").append(game.getTurn().getStepType().toString());
}
// pings info
sb.append("<br>");
sb.append(getPingsInfo());