Apache Lucene open-source search software
SOLR-5474 Fix NPE in tests (some more)
Steven Rowe07dec8cab8a1
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.javaindex 7e429ed973d..0182cca2083 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/CloudSolrServer.java@@ -719,7 +719,9 @@ public class CloudSolrServer extends SolrServer {}}- requestedCollections.clear(); // done with this+ if (requestedCollections != null) {+ requestedCollections.clear(); // done with this+ }// if the state was stale, then we retry the request once with new state pulled from Zkif (stateWasStale) {