mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- potential NPE prevention.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user