fix nullpointer cryOfTheCarnarium

This commit is contained in:
Ingmar Goudt 2019-01-12 23:03:01 +01:00
parent df66fc51f0
commit 36852c0bd5

View file

@ -102,7 +102,7 @@ class CryOfTheCarnariumReplacementEffect extends ReplacementEffectImpl {
Permanent permanent = ((ZoneChangeEvent) event).getTarget(); Permanent permanent = ((ZoneChangeEvent) event).getTarget();
if (permanent != null) { if (permanent != null) {
Player player = game.getPlayer(permanent.getControllerId()); Player player = game.getPlayer(permanent.getControllerId());
if (player == null) { if (player != null) {
return player.moveCards(permanent, Zone.EXILED, source, game); return player.moveCards(permanent, Zone.EXILED, source, game);
} }
} }