mirror of https://github.com/apache/lucene.git
SOLR-11224: SolrStream.close can hit an NPE
This commit is contained in:
parent
3b0f46b27d
commit
424fb3bfb7
|
@ -151,6 +151,8 @@ Bug Fixes
|
|||
* SOLR-11399: The UnifiedHighlighter was ignoring the hl.fragsize parameter when hl.bs.type=SEPARATOR
|
||||
(Marc Morissette via David Smiley)
|
||||
|
||||
* SOLR-11224: SolrStream.close can hit an NPE (Erick Erickson)
|
||||
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
|
|
@ -176,7 +176,9 @@ public class SolrStream extends TupleStream {
|
|||
* */
|
||||
|
||||
public void close() throws IOException {
|
||||
closeableHttpResponse.close();
|
||||
if (closeableHttpResponse != null) {
|
||||
closeableHttpResponse.close();
|
||||
}
|
||||
if(cache == null) {
|
||||
client.close();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue