*Fix potential NPE in Commander deck conformance check.

This commit is contained in:
Hellfish
2013-04-23 18:43:19 +00:00
parent f5ac535af3
commit deeba62794

View File

@@ -170,6 +170,8 @@ public enum DeckFormat {
}
}
}
if(deck.get(DeckSection.Sideboard) != null)
{
for(Entry<CardPrinted, Integer> cp : deck.get(DeckSection.Sideboard)) {
if(!cp.getKey().getRules().getColorIdentity().hasNoColorsExcept(cmdCI.getColor()))
{
@@ -189,6 +191,7 @@ public enum DeckFormat {
}
}
}
}
if(erroneousCI.size() > 0)
{