mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Resolve "NPE at forge.game.GameAction.sacrificeDestroy(GameAction.java:1709)"
This commit is contained in:
committed by
Michael Kamensky
parent
0b6ed46a0a
commit
5ad88099e1
@@ -1699,7 +1699,7 @@ public class GameAction {
|
||||
}
|
||||
|
||||
final Card newCard = moveToGraveyard(c, cause, null);
|
||||
if (table != null) {
|
||||
if (table != null && newCard != null && newCard.getZone() != null) {
|
||||
table.put(ZoneType.Battlefield, newCard.getZone().getZoneType(), newCard);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user