- A better fix for the custom booster draft NPEing

This commit is contained in:
Agetian
2014-01-27 07:06:20 +00:00
parent f5d43d0986
commit 8dea53bcda
2 changed files with 8 additions and 1 deletions

View File

@@ -134,6 +134,9 @@ public class ImageCache {
* </p>
*/
public static BufferedImage getOriginalImage(String imageKey, boolean useDefaultIfNotFound) {
if (null == imageKey) {
return null;
}
boolean altState = imageKey.endsWith(ImageKeys.BACKFACE_POSTFIX);
if(altState)

View File

@@ -45,6 +45,10 @@ public enum CDetail implements ICDoc {
* @param c &emsp; Card object
*/
public void showCard(final Card c) {
if (null == c) {
return;
}
view.getLblFlipcard().setVisible(c != null && (c.isDoubleFaced() || c.isFlipCard() || c.isFaceDown() && Singletons.getControl().mayShowCard(c)));
view.getPnlDetail().setCard(c);
view.getParentCell().repaintSelf();