From 81c38449d9aa4fac0ecfaa5a41fbda92aeccee52 Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Sat, 12 Oct 2019 06:09:56 +0800 Subject: [PATCH] NPE from rarity (dev mode: Put two Nicol Bolas in graveyard, cast animate dead to return 1st Nicol Bolas to play, then cast Rise from the grave to return the 2nd Nicol Bolas to play, then choose the 2nd Nicol Bolas to stay on the battlefield) --- forge-gui-mobile/src/forge/card/CardRenderer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/forge-gui-mobile/src/forge/card/CardRenderer.java b/forge-gui-mobile/src/forge/card/CardRenderer.java index 6c1680a5756..c713ebf51cb 100644 --- a/forge-gui-mobile/src/forge/card/CardRenderer.java +++ b/forge-gui-mobile/src/forge/card/CardRenderer.java @@ -120,6 +120,8 @@ public class CardRenderer { } public static Color getRarityColor(CardRarity rarity) { + if (rarity == null)// NPE from Rarity weird... + return Color.CLEAR; switch(rarity) { case Uncommon: return fromDetailColor(DetailColors.UNCOMMON);