Merge branch '1836-npe-at-forge-game-gameaction-sacrificedestroy-gameaction-java-1709' into 'master'

Resolve "NPE at forge.game.GameAction.sacrificeDestroy(GameAction.java:1709)"

Closes #1836

See merge request core-developers/forge!4699
This commit is contained in:
Michael Kamensky
2021-05-15 12:40:13 +00:00
11 changed files with 14 additions and 24 deletions

View File

@@ -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);
}