Fixed NPE that broke the tests.

This commit is contained in:
LevelX2 2013-04-10 21:58:27 +02:00
parent fa76004261
commit e1ffa37af9

View file

@ -573,7 +573,7 @@ public abstract class GameImpl<T extends GameImpl<T>> implements Game, Serializa
for (Player player: state.getPlayers().values()) { for (Player player: state.getPlayers().values()) {
player.beginTurn(this); player.beginTurn(this);
} }
if (startMessage.isEmpty()) { if (startMessage == null || startMessage.isEmpty()) {
startMessage = "Game has started"; startMessage = "Game has started";
} }
fireStatusEvent(startMessage, false); fireStatusEvent(startMessage, false);