mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +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 java.util.Set;
|
||||||
|
|
||||||
import com.google.common.base.Predicate;
|
import com.google.common.base.Predicate;
|
||||||
|
import com.google.common.base.Predicates;
|
||||||
|
|
||||||
import forge.GuiBase;
|
import forge.GuiBase;
|
||||||
import forge.assets.ISkinImage;
|
import forge.assets.ISkinImage;
|
||||||
@@ -87,7 +88,7 @@ public class ConquestRegion {
|
|||||||
String name = null;
|
String name = null;
|
||||||
String artCardName = null;
|
String artCardName = null;
|
||||||
ColorSet colorSet = ColorSet.ALL_COLORS;
|
ColorSet colorSet = ColorSet.ALL_COLORS;
|
||||||
Predicate<PaperCard> pred = null;
|
Predicate<PaperCard> pred = Predicates.alwaysTrue();
|
||||||
|
|
||||||
String[] pieces = line.trim().split("\\|");
|
String[] pieces = line.trim().split("\\|");
|
||||||
for (String piece : pieces) {
|
for (String piece : pieces) {
|
||||||
|
|||||||
Reference in New Issue
Block a user