You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by cp...@apache.org on 2018/10/18 22:17:10 UTC

[3/4] lucene-solr:branch_7x: SOLR-12877: avoid NPE in TestTlogReplica.testRealTimeGet

SOLR-12877: avoid NPE in TestTlogReplica.testRealTimeGet


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/ac60ddda
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/ac60ddda
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/ac60ddda

Branch: refs/heads/branch_7x
Commit: ac60ddda3c96584ebcca35660d846ab6424ea680
Parents: 3e874f7
Author: Christine Poerschke <cp...@apache.org>
Authored: Tue Oct 16 12:52:51 2018 -0400
Committer: Christine Poerschke <cp...@apache.org>
Committed: Thu Oct 18 17:59:43 2018 -0400

----------------------------------------------------------------------
 solr/core/src/test/org/apache/solr/cloud/TestTlogReplica.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/ac60ddda/solr/core/src/test/org/apache/solr/cloud/TestTlogReplica.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/TestTlogReplica.java b/solr/core/src/test/org/apache/solr/cloud/TestTlogReplica.java
index 6888d88..8e66b1e 100644
--- a/solr/core/src/test/org/apache/solr/cloud/TestTlogReplica.java
+++ b/solr/core/src/test/org/apache/solr/cloud/TestTlogReplica.java
@@ -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)) {