Christine Poerschke created SOLR-13496:
------------------------------------------
Summary: NullPointerException in JSONWriter.writeSolrDocument
Key: SOLR-13496
URL: https://issues.apache.org/jira/browse/SOLR-13496
Project: Solr
Issue Type: Bug
Reporter: Christine Poerschke
Assignee: Christine Poerschke
For non-grouped searches
[QueryComponent.regularFinishStage|https://github.com/apache/lucene-solr/blob/releases/lucene-solr/8.1.1/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java#L647-L655]
already considers the possibility of null {{SolrDocument}} values due to an
index change.
For grouped searches
[GroupedEndResultTransformer.transform|https://github.com/apache/lucene-solr/blob/releases/lucene-solr/8.1.1/solr/core/src/java/org/apache/solr/search/grouping/endresulttransformer/GroupedEndResultTransformer.java#L94-L114]
potentially adds a null element to a {{SolrDocumentList}}.
The
[TextResponseWriter.writeSolrDocumentList|https://github.com/apache/lucene-solr/blob/releases/lucene-solr/8.1.1/solr/core/src/java/org/apache/solr/response/TextResponseWriter.java#L170]
method passes any null {{SolrDocument}} through to the
[JSONWriter.writeSolrDocument|https://github.com/apache/lucene-solr/blob/releases/lucene-solr/8.1.1/solr/core/src/java/org/apache/solr/response/JSONWriter.java#L87]
method leading to a {{NullPointerException}} at line 87.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]