Prevent #1082 : CardViewer.setCard() NPE.
parent
db37bb62b8
commit
a83d512a08
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue