Prevent crash if calling hasStringType with ""

This commit is contained in:
drdev
2014-10-15 20:03:10 +00:00
parent 8aa9fd050e
commit adc0a48cec

View File

@@ -196,6 +196,9 @@ public final class CardType implements Comparable<CardType>, CardTypeView {
}
public boolean hasStringType(String t) {
if (t.isEmpty()) {
return false;
}
if (subtypes.contains(t)) {
return true;
}