This commit is contained in:
Jörg Prante 2018-03-04 23:14:26 +01:00
parent 30ac8b09c2
commit edb85cfdd8
3 changed files with 6 additions and 2 deletions

2
.gitignore vendored
View file

@ -9,5 +9,5 @@
/.project
/.gradle
/build
/out
out
*~

View file

@ -71,6 +71,10 @@ test {
}
}
clean {
delete 'out'
}
asciidoctor {
attributes toc: 'left',
doctype: 'book',

View file

@ -104,7 +104,7 @@ public final class Client {
this.http2ResponseHandler = new Http2ResponseHandler();
this.transports = new CopyOnWriteArrayList<>();
List<HttpAddress> nodes = clientConfig.getNodes();
if (!nodes.isEmpty()) {
if (nodes != null && !nodes.isEmpty()) {
Integer limit = clientConfig.getNodeConnectionLimit();
if (limit == null || limit > nodes.size()) {
limit = nodes.size();