- Fixed possible NPE in getBlockers.

This commit is contained in:
Sloth
2013-06-19 20:59:42 +00:00
parent 8820a45312
commit 13615dc15a

View File

@@ -441,12 +441,12 @@ public class Combat {
}
public final List<Card> getBlockers(final Card card, boolean ordered) {
// If requesting the ordered blocking lsit pass true, directly.
// If requesting the ordered blocking list pass true, directly.
List<Card> list = null;
if (ordered) {
list = this.attackerDamageAssignmentOrder.containsKey(card) ? this.attackerDamageAssignmentOrder.get(card) : null;
} else {
list = this.getBandByAttacker(card).getBlockers();
list = this.getBandByAttacker(card) != null ? this.getBandByAttacker(card).getBlockers() : null;
}
if (list == null) {