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)

This commit is contained in:
Anthony Calosa
2019-10-12 06:09:56 +08:00
parent fd92993274
commit 81c38449d9

View File

@@ -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);