mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Fix crash when filtering card sets in workshop
Null pointer exception caused a crash when trying to filter by set in the debug workshop. Null value was in the limitedSets parameter being passed in.
This commit is contained in:
@@ -26,8 +26,10 @@ public class CardSetFilter extends CardFormatFilter {
|
|||||||
|
|
||||||
public CardSetFilter(ItemManager<? super PaperCard> itemManager0, Collection<String> sets0, Collection<String> limitedSets0, boolean allowReprints0){
|
public CardSetFilter(ItemManager<? super PaperCard> itemManager0, Collection<String> sets0, Collection<String> limitedSets0, boolean allowReprints0){
|
||||||
this(itemManager0, sets0, allowReprints0);
|
this(itemManager0, sets0, allowReprints0);
|
||||||
|
if (limitedSets0 != null) {
|
||||||
this.limitedSets.addAll(limitedSets0);
|
this.limitedSets.addAll(limitedSets0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ItemFilter<PaperCard> createCopy() {
|
public ItemFilter<PaperCard> createCopy() {
|
||||||
|
|||||||
Reference in New Issue
Block a user