mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-18 15:17:36 +01:00
Fixed CSVDatabase spitting an error if the owners list was empty.
This commit is contained in:
parent
61896ea760
commit
5fdd26b53f
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user