fixes NPE at getCmc

This commit is contained in:
Maxmtg
2013-03-11 09:35:40 +00:00
parent 63453fec21
commit 1ec1bceedb

View File

@@ -9195,7 +9195,7 @@ public class Card extends GameEntity implements Comparable<Card> {
int requestedCMC = 0; int requestedCMC = 0;
if (getRules().getSplitType() == CardSplitType.Split) { if (getRules() != null && getRules().getSplitType() == CardSplitType.Split) {
switch(mode) { switch(mode) {
case CurrentSideCMC: case CurrentSideCMC:
// TODO: test if this returns combined CMC for the full face (then get rid of CombinedCMC mode?) // TODO: test if this returns combined CMC for the full face (then get rid of CombinedCMC mode?)