- potential NPE prevention.

This commit is contained in:
Agetian
2013-07-01 12:16:56 +00:00
parent 84abcc565d
commit ef44922aa6

View File

@@ -99,7 +99,7 @@ public final class CardPicturePanel extends JPanel {
foilIndex = ((Card)this.displayed).getFoil();
}
if (image != this.currentImage) {
if (image != null && image != this.currentImage) {
if (foilIndex == 0) {
this.currentImage = image;
this.panel.setImage(image);