diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientNodeStateProvider.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientNodeStateProvider.java index fc3564f28b6..8a4b35c6d27 100644 --- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientNodeStateProvider.java +++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/SolrClientNodeStateProvider.java @@ -316,8 +316,9 @@ public class SolrClientNodeStateProvider implements NodeStateProvider, MapWriter CloudSolrClient solrClient; public boolean isNodeAlive(String node) { - if (zkClientClusterStateProvider != null && zkClientClusterStateProvider.getLiveNodes().contains(node)) - return true; + if (zkClientClusterStateProvider != null) { + return zkClientClusterStateProvider.getLiveNodes().contains(node); + } return true; } public ClientSnitchCtx(SnitchInfo perSnitch,