You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2020/11/15 20:24:26 UTC

[lucene-solr] 01/02: @1215 Fix NPE.

This is an automated email from the ASF dual-hosted git repository.

markrmiller pushed a commit to branch reference_impl_dev
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit c217e828503f4f3bf9de99d1eeae88cb92ab4c19
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Sun Nov 15 13:27:06 2020 -0600

    @1215 Fix NPE.
---
 solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java b/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java
index 571dd61..5fbdcd4 100644
--- a/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java
+++ b/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java
@@ -399,7 +399,7 @@ public class SolrCmdDistributor implements Closeable {
   }
 
   public static class StdNode extends Node {
-    private final ZkStateReader zkStateReader;
+    protected final ZkStateReader zkStateReader;
     protected Replica nodeProps;
     protected String collection;
     protected String shardId;
@@ -509,8 +509,6 @@ public class SolrCmdDistributor implements Closeable {
   // to try the latest leader on a fail in the case the leader just went down.
   public static class ForwardNode extends StdNode {
     
-    private ZkStateReader zkStateReader;
-    
     public ForwardNode(ZkStateReader zkStateReader, Replica nodeProps, String collection, String shardId) {
       super(zkStateReader, nodeProps, collection, shardId);
       this.collection = collection;