From aa6d0ba3640e6b62cb4d22b535ec1fa6f02a1fb8 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 04:37:11 +0000 Subject: [PATCH] - Bugfix for quest (icon related). --- src/forge/GuiDisplay3.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/forge/GuiDisplay3.java b/src/forge/GuiDisplay3.java index 7884afb56fa..cc6b3042764 100644 --- a/src/forge/GuiDisplay3.java +++ b/src/forge/GuiDisplay3.java @@ -500,11 +500,13 @@ public class GuiDisplay3 extends JFrame implements CardContainer, Display, NewCo if (AllZone.QuestData != null) { File base = ForgeProps.getFile(IMAGE_ICON); - File file = new File(base, Constant.Quest.oppIconName[0]); - ImageIcon icon = new ImageIcon(file.toString()); - - oppIconLabel.setIcon(icon); - + String iconName = ""; + if (Constant.Quest.oppIconName[0] != null) { + iconName = Constant.Quest.oppIconName[0]; + File file = new File(base, iconName); + ImageIcon icon = new ImageIcon(file.toString()); + oppIconLabel.setIcon(icon); + } } oppPCLabel.setText("Poison Counters: " + AllZone.Computer_PoisonCounter.getPoisonCounters());