Skip to content

Commit

Permalink
Fix NPE on start of TerraFirma map. (#11802)
Browse files Browse the repository at this point in the history
  • Loading branch information
asvitkine authored Jul 22, 2023
1 parent acf0598 commit 128dfce
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ public void gameDataChanged(final Change change) {
final GameData data = getData();
try (GameData.Unlocker ignored = data.acquireReadLock()) {
final GamePlayer player = data.getSequence().getStep().getPlayerId();
if (player == null) {
return;
}
unitsToPlace = UnitSeparator.categorize(player.getUnits());
}

Expand Down

0 comments on commit 128dfce

Please sign in to comment.