Skip to content

Commit

Permalink
Merge branch 'develop' into fix-3652
Browse files Browse the repository at this point in the history
  • Loading branch information
Phergus authored Sep 21, 2022
2 parents 54fba53 + e0c302b commit d01e652
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/net/rptools/maptool/model/InitiativeList.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,12 @@ public InitiativeList(Zone aZone) {
* @return The token initiative data for the passed index.
*/
public TokenInitiative getTokenInitiative(int index) {
return index < tokens.size() && index >= 0 ? tokens.get(index) : null;
if (index < tokens.size() && index >= 0) {
return tokens.get(index);
} else {
LOGGER.error("getTokenInitiative: index = " + index + ", size = " + tokens.size());
return null;
}
}

/**
Expand Down

0 comments on commit d01e652

Please sign in to comment.