mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +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,8 +440,10 @@ class CustomTestCard extends CardImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void addAdditionalSubtypes(String cardName, SubType... subtypes) {
|
static void addAdditionalSubtypes(String cardName, SubType... subtypes) {
|
||||||
|
if(subtypes!=null) {
|
||||||
subTypesList.computeIfAbsent(cardName, s -> new HashSet<>()).addAll(Arrays.asList(subtypes.clone()));
|
subTypesList.computeIfAbsent(cardName, s -> new HashSet<>()).addAll(Arrays.asList(subtypes.clone()));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void clearAdditionalSubtypes(String cardName) {
|
static void clearAdditionalSubtypes(String cardName) {
|
||||||
subTypesList.remove(cardName);
|
subTypesList.remove(cardName);
|
||||||
|
|
Loading…
Reference in a new issue