Apache Lucene open-source search software
Fix NPE on nightly tests
Shalin Shekhar Mangar0e165d33ad38
diff --git a/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java b/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.javaindex d120098e4dd..5cfe96fc2ed 100644--- a/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java@@ -1032,12 +1032,14 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBaclient = createCloudClient(null);} else if (i == 1) {client = createCloudClient(collectionName);+ } else {+ client = createCloudClient(null);}createCollection(collectionInfos, collectionName,numShards, replicationFactor, maxShardsPerNode, client, null,"conf1");-+// remove collectionCollectionAdminRequest.Delete delete = new CollectionAdminRequest.Delete();delete.setCollectionName(collectionName);