- Fixed a NPE on mobile Forge when looking up certain cards with replacement effects (e.g. Kess, Dissident Mage).

This commit is contained in:
Agetian
2017-12-08 10:31:27 +00:00
parent 3132e5dd5b
commit 2a62001048

View File

@@ -64,7 +64,7 @@ public abstract class ReplacementEffect extends TriggerReplacementBase {
mapParams.putAll(map);
this.setHostCard(host);
if (host != null && mapParams.get("Description").contains("CARDNAME")) {
if (host != null && mapParams.containsKey("Description") && mapParams.get("Description").contains("CARDNAME")) {
String desc = TextUtil.fastReplace(mapParams.get("Description"), "CARDNAME", host.toString());
originalMapParams.put("Description", desc);
mapParams.put("Description", desc);