Prevent #1082 : CardViewer.setCard() NPE.

master
lodici 2017-02-24 03:09:22 +00:00
parent db37bb62b8
commit a83d512a08
1 changed files with 5 additions and 0 deletions

View File

@ -129,6 +129,11 @@ public class CardViewer extends JPanel implements ICardSelectionListener {
public final void setCard(final MagicCardDefinition aCard) {
if (aCard == null) {
System.err.println("CardViewer.setCard() : aCard is null!");
return;
}
if (aCard == thisCard) {
return;
}