Fixed CSVDatabase spitting an error if the owners list was empty.

This commit is contained in:
sk89q 2011-01-20 02:01:50 -08:00
parent 61896ea760
commit 5fdd26b53f

View File

@ -197,6 +197,10 @@ private DefaultDomain parseDomains(String data) {
String[] parts = data.split(","); String[] parts = data.split(",");
for (String part : parts) { for (String part : parts) {
if (part.trim().length() == 0) {
continue;
}
Matcher matcher = pattern.matcher(part); Matcher matcher = pattern.matcher(part);
if (!matcher.matches()) { if (!matcher.matches()) {