Always create an empty map for tokenNormalized

This commit is contained in:
Chris H
2019-03-24 21:00:31 -04:00
parent 99456c7bbb
commit 5aee626661

View File

@@ -128,7 +128,7 @@ public final class CardEdition implements Comparable<CardEdition> { // immutable
private CardEdition(CardInSet[] cards) { private CardEdition(CardInSet[] cards) {
this.cards = cards; this.cards = cards;
tokenNormalized = null; tokenNormalized = new HashMap<>();
} }
private CardEdition(CardInSet[] cards, Map<String, Integer> tokens) { private CardEdition(CardInSet[] cards, Map<String, Integer> tokens) {