null pointer Nahin, The Harbinger.
-
package mage.cards.n;
import java.util.UUID;
@@ -114,6 +113,7 @@ class NahiriTheHarbingerEffect extends SearchEffect {
if (controller.searchLibrary(target, game)) {
if (!target.getTargets().isEmpty()) {
Card card = controller.getLibrary().getCard(target.getFirstTarget(), game);
+ if (card != null) {
controller.moveCards(card, Zone.BATTLEFIELD, source, game);
Permanent permanent = game.getPermanent(card.getId());
if (permanent != null) {
@@ -126,6 +126,7 @@ class NahiriTheHarbingerEffect extends SearchEffect {
game.addDelayedTriggeredAbility(delayedAbility, source);
}
}
+ }
controller.shuffleLibrary(source, game);
}
return true;
