SOLR-13281: Fix NPE in DocExpirationUpdateProcessor

This commit is contained in:
Tomas Fernandez Lobbe 2019-04-18 22:22:26 -07:00
parent 2a3bd8e864
commit 9f644b1c69
2 changed files with 4 additions and 0 deletions

View File

@ -217,6 +217,8 @@ Bug Fixes
* SOLR-13408: Cannot start/stop DaemonStream repeatedly, other API improvements (Erick Erickson)
* SOLR-13281: Fixed NPE in DocExpirationUpdateProcessorFactory (Munendra S N, Tomás Fernández Löbbe)
Improvements
----------------------

View File

@ -38,6 +38,7 @@ import org.apache.solr.common.cloud.Replica;
import org.apache.solr.common.cloud.Slice;
import org.apache.solr.common.util.ExecutorUtil;
import org.apache.solr.common.util.NamedList;
import org.apache.solr.common.util.SimpleOrderedMap;
import org.apache.solr.core.CloseHook;
import org.apache.solr.core.SolrCore;
import org.apache.solr.request.LocalSolrQueryRequest;
@ -384,6 +385,7 @@ public final class DocExpirationUpdateProcessorFactory
(factory.core, Collections.<String,String[]>emptyMap());
try {
final SolrQueryResponse rsp = new SolrQueryResponse();
rsp.addResponseHeader(new SimpleOrderedMap<>(1));
SolrRequestInfo.setRequestInfo(new SolrRequestInfo(req, rsp));
try {