Skip to content

Commit

Permalink
Fix NPE if no blacklist is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain GÉRARD committed Jul 4, 2019
1 parent 37f1e0f commit 1148b3b
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -6,6 +6,7 @@
import org.slf4j.LoggerFactory;

import java.io.File;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Optional;
Expand Down Expand Up @@ -63,7 +64,7 @@ public String getHost() {
}

public List<String> getBlacklist() {
return blacklist;
return blacklist == null ? Collections.emptyList() : blacklist;
}

public boolean getSSL() {
Expand Down

0 comments on commit 1148b3b

Please sign in to comment.