From 430802d2489359834e5b55de5917157b6e8798a6 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Tue, 10 May 2011 17:24:37 +0400 Subject: [PATCH] Fixed NPE that was thrown when choosing player while paying mana abilities --- .../Mage.Player.Human/src/mage/player/human/HumanPlayer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java b/Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java index 8adebdbc91..661b968102 100644 --- a/Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java +++ b/Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java @@ -371,6 +371,7 @@ public class HumanPlayer extends PlayerImpl { protected void playManaAbilities(Game game) { MageObject object = game.getObject(response.getUUID()); + if (object == null) return; Map useableAbilities; switch (game.getZone(object.getId())) { case HAND: