Skip to content
Permalink
Browse files

Fix NPE if no blacklist is provided

  • Loading branch information...
erebe committed Jul 4, 2019
1 parent 37f1e0f commit 1148b3b754f14ca12c3a5dcac2e3e2566dc5072b
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/java/com/criteo/nosql/cassandra/exporter/Config.java
@@ -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;
@@ -63,7 +64,7 @@ public String getHost() {
}

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

public boolean getSSL() {

0 comments on commit 1148b3b

Please sign in to comment.
You can’t perform that action at this time.