mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 17:58:01 +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,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
|
||||||
|
|||||||
Reference in New Issue
Block a user