mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
fixed an NPE issue
This commit is contained in:
parent
003fd098b0
commit
0d12f566e5
1 changed files with 3 additions and 1 deletions
|
@ -440,7 +440,9 @@ class CustomTestCard extends CardImpl {
|
|||
}
|
||||
|
||||
static void addAdditionalSubtypes(String cardName, SubType... subtypes) {
|
||||
subTypesList.computeIfAbsent(cardName, s -> new HashSet<>()).addAll(Arrays.asList(subtypes.clone()));
|
||||
if(subtypes!=null) {
|
||||
subTypesList.computeIfAbsent(cardName, s -> new HashSet<>()).addAll(Arrays.asList(subtypes.clone()));
|
||||
}
|
||||
}
|
||||
|
||||
static void clearAdditionalSubtypes(String cardName) {
|
||||
|
|
Loading…
Reference in a new issue