Do not error when server filter does not have a list
This commit is contained in:
1 parent
4aa276a2d0
commit
0ef4793df3
1 file changed
+3
@@ -6,6 +6,9 @@ import java.util.Collections;
|
||||
public class ServerFilter {
|
||||
|
||||
public ServerFilter(Collection<String> names, boolean whitelist) {
|
||||
if (names == null)
|
||||
names = Collections.EMPTY_SET;
|
||||
|
||||
this.names = names;
|
||||
this.whitelist = whitelist;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user