mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Fixed a NPE when entering deck editor.
This commit is contained in:
@@ -2462,7 +2462,7 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
String elementText = element.toString();
|
||||
|
||||
//Determine if a card has multiple choices, then format it in an easier to read list.
|
||||
if (element.getApi().equals(ApiType.Charm)) {
|
||||
if (element.getApi() != null && element.getApi().equals(ApiType.Charm)) {
|
||||
|
||||
String chooseText = elementText.split("-")[0].trim();
|
||||
sb.append(chooseText).append("—\r\n");
|
||||
|
||||
Reference in New Issue
Block a user