mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +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();
|
foilIndex = ((Card)this.displayed).getFoil();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (image != this.currentImage) {
|
if (image != null && image != this.currentImage) {
|
||||||
if (foilIndex == 0) {
|
if (foilIndex == 0) {
|
||||||
this.currentImage = image;
|
this.currentImage = image;
|
||||||
this.panel.setImage(image);
|
this.panel.setImage(image);
|
||||||
|
|||||||
Reference in New Issue
Block a user