mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Fix crash when create token with unknown edition
This commit is contained in:
@@ -42,6 +42,10 @@ public class ImageUtil {
|
||||
String edition = key.substring(index + 1);
|
||||
if (script.startsWith("emblem"))
|
||||
return null;
|
||||
if (null == StaticData.instance().getCardEdition(edition)) {
|
||||
script = key;
|
||||
edition = "???";
|
||||
}
|
||||
script = script.replaceAll("[0-9]*$", "");
|
||||
return StaticData.instance().getAllTokens().getToken(script, edition);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user