mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Update Card.java
Fix NPE
This commit is contained in:
@@ -4405,7 +4405,7 @@ public class Card extends GameEntity implements Comparable<Card>, IHasSVars {
|
|||||||
p.get("Timestamp"), (long) 0);
|
p.get("Timestamp"), (long) 0);
|
||||||
} else if (category.equals("Keywords")) {
|
} else if (category.equals("Keywords")) {
|
||||||
addChangedCardKeywords((List<String>) p.get("AddKeywords"), Lists.newArrayList(),
|
addChangedCardKeywords((List<String>) p.get("AddKeywords"), Lists.newArrayList(),
|
||||||
(boolean) p.get("RemoveAll"), (long) p.get("Timestamp"), (long) 0);
|
(boolean) p.getOrDefault("RemoveAll", false), (long) p.get("Timestamp"), (long) 0);
|
||||||
} else if (category.equals("Types")) {
|
} else if (category.equals("Types")) {
|
||||||
addChangedCardTypes((CardType) p.get("AddTypes"), (CardType) p.get("RemoveTypes"),
|
addChangedCardTypes((CardType) p.get("AddTypes"), (CardType) p.get("RemoveTypes"),
|
||||||
false, (Set<RemoveType>) p.get("RemoveXTypes"),
|
false, (Set<RemoveType>) p.get("RemoveXTypes"),
|
||||||
|
|||||||
Reference in New Issue
Block a user