mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Prevent crash due to null predicate
This commit is contained in:
@@ -6,6 +6,7 @@ import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import com.google.common.base.Predicate;
|
||||
import com.google.common.base.Predicates;
|
||||
|
||||
import forge.GuiBase;
|
||||
import forge.assets.ISkinImage;
|
||||
@@ -87,7 +88,7 @@ public class ConquestRegion {
|
||||
String name = null;
|
||||
String artCardName = null;
|
||||
ColorSet colorSet = ColorSet.ALL_COLORS;
|
||||
Predicate<PaperCard> pred = null;
|
||||
Predicate<PaperCard> pred = Predicates.alwaysTrue();
|
||||
|
||||
String[] pieces = line.trim().split("\\|");
|
||||
for (String piece : pieces) {
|
||||
|
||||
Reference in New Issue
Block a user