lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cpoersc...@apache.org
Subject [3/4] lucene-solr:branch_7x: SOLR-12877: avoid NPE in TestTlogReplica.testRealTimeGet
Date Thu, 18 Oct 2018 22:17:10 GMT
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 <cpoerschke@apache.org>
Authored: Tue Oct 16 12:52:51 2018 -0400
Committer: Christine Poerschke <cpoerschke@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)) {


Mime
View raw message