mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Fixing a pretty hard NPE crash. Not sure what scenario this occurs, but it basically spawned a crash report in high order
This commit is contained in:
@@ -313,8 +313,8 @@ public class CardPanel extends JPanel implements CardContainer {
|
||||
// + White borders for Core sets Unlimited - 9th +
|
||||
final int cornerSize = Math.max(4, Math.round(this.cardWidth * CardPanel.ROUNDED_CORNER_SIZE));
|
||||
|
||||
if (this.getGameCard() != null && (!this.getGameCard().getImageFilename().equals("none"))
|
||||
&& (!this.getGameCard().getName().equals("Morph"))) {
|
||||
if (this.getGameCard() != null && this.getGameCard().getImageFilename() != null
|
||||
&& !this.getGameCard().getImageFilename().equals("none") && !this.getGameCard().getName().equals("Morph")) {
|
||||
CardEdition ed = Singletons.getModel().getEditions().get(this.getGameCard().getCurSetCode());
|
||||
|
||||
if (ed != null && ed.isWhiteBorder()) {
|
||||
|
||||
Reference in New Issue
Block a user