SOLR-12877: avoid NPE in TestTlogReplica.testRealTimeGet

This commit is contained in:
Christine Poerschke 2018-10-16 12:52:51 -04:00
parent 95af8d6ac2
commit 15002eba2f
1 changed files with 1 additions and 0 deletions

View File

@ -342,6 +342,7 @@ public class TestTlogReplica extends SolrCloudTestCase {
client.add(new SolrInputDocument("id", String.valueOf(id), "foo_s", "bar"));
}
SolrDocument docCloudClient = cluster.getSolrClient().getById(collectionName, String.valueOf(id));
assertNotNull(docCloudClient);
assertEquals("bar", docCloudClient.getFieldValue("foo_s"));
for (Replica rGet:slice.getReplicas()) {
try (HttpSolrClient client = getHttpSolrClient(rGet.getCoreUrl(), httpClient)) {