Skip to content

Commit

Permalink
Update Card.java
Browse files Browse the repository at this point in the history
Fix NPE
  • Loading branch information
tool4ever authored Jan 4, 2024
1 parent 390efec commit 9ca64b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forge-game/src/main/java/forge/game/card/Card.java
Original file line number Diff line number Diff line change
Expand Up @@ -4405,7 +4405,7 @@ public final void executePerpetual(Map<String, Object> p) {
p.get("Timestamp"), (long) 0);
} else if (category.equals("Keywords")) {
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")) {
addChangedCardTypes((CardType) p.get("AddTypes"), (CardType) p.get("RemoveTypes"),
false, (Set<RemoveType>) p.get("RemoveXTypes"),
Expand Down

0 comments on commit 9ca64b2

Please sign in to comment.