Prevent crash in CardDetailPanel::setCard

This commit is contained in:
drdev
2014-11-29 16:41:45 +00:00
parent bc0366813b
commit 4fe33c6c9b

View File

@@ -178,8 +178,13 @@ public class CardDetailPanel extends SkinnedPanel {
setInfoLabel.setBorder(null);
cdArea.setText("");
if (card == null) {
updateBorder(null, false);
return;
}
final CardStateView state = card.getState(isInAltState);
if (card == null || state == null) {
if (state == null) {
updateBorder(null, false);
return;
}