From 422be868ff49d7348b7878ca3e9a81072549439f Mon Sep 17 00:00:00 2001 From: magenoxx Date: Mon, 28 Feb 2011 00:30:14 +0300 Subject: [PATCH] ComputerPlayer2 NullPointerException fix. --- .../src/mage/player/ai/ComputerPlayer2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Server.Plugins/Mage.Player.AIMinimax/src/mage/player/ai/ComputerPlayer2.java b/Mage.Server.Plugins/Mage.Player.AIMinimax/src/mage/player/ai/ComputerPlayer2.java index 8c5334a855..641079d53c 100644 --- a/Mage.Server.Plugins/Mage.Player.AIMinimax/src/mage/player/ai/ComputerPlayer2.java +++ b/Mage.Server.Plugins/Mage.Player.AIMinimax/src/mage/player/ai/ComputerPlayer2.java @@ -646,7 +646,7 @@ public class ComputerPlayer2 extends ComputerPlayer implements @Override public void selectAttackers(Game game) { - if (logger.isDebugEnabled() && combat == null || combat.getGroups().isEmpty()) + if (logger.isDebugEnabled() && (combat == null || combat.getGroups().isEmpty())) logger.debug("not attacking"); if (combat != null) { UUID opponentId = game.getCombat().getDefenders().iterator().next();