prevent crash audit

This commit is contained in:
Anthony Calosa
2024-10-26 06:31:36 +08:00
parent 4ae88ae6ba
commit 5d1e780beb

View File

@@ -778,9 +778,9 @@ public class StaticData {
HashMap<String, Pair<Boolean, Integer>> cardCount = new HashMap<>();
for (CardEdition.CardInSet c : e.getAllCardsInSet()) {
if (cardCount.containsKey(c.name)) {
cardCount.put(c.name, Pair.of(c.collectorNumber.startsWith("F"), cardCount.get(c.name).getRight() + 1));
cardCount.put(c.name, Pair.of(c.collectorNumber != null && c.collectorNumber.startsWith("F"), cardCount.get(c.name).getRight() + 1));
} else {
cardCount.put(c.name, Pair.of(c.collectorNumber.startsWith("F"), 1));
cardCount.put(c.name, Pair.of(c.collectorNumber != null && c.collectorNumber.startsWith("F"), 1));
}
}