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:
DorkmasterFlek
2022-12-26 15:44:42 -05:00
parent ef44210a56
commit 0645b23405

View File

@@ -26,7 +26,9 @@ 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);
this.limitedSets.addAll(limitedSets0); if (limitedSets0 != null) {
this.limitedSets.addAll(limitedSets0);
}
} }
@Override @Override