Null pointer fix.

This commit is contained in:
Doublestrike
2012-01-15 12:31:40 +00:00
parent 158a28dc67
commit 49f73a7bcc

View File

@@ -376,6 +376,10 @@ public class CardPanel extends JPanel implements CardContainer {
}
}
if (this.getCard() == null) {
return;
}
final int counters = this.getCard().getNumberOfCounters();
if (counters == 1) {