Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13496

NullPointerException in JSONWriter.writeSolrDocument

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.2, main (9.0)
    • Component/s: None
    • Labels:
      None

      Description

      For non-grouped searches QueryComponent.regularFinishStage already considers the possibility of null SolrDocument values due to an index change.

      For grouped searches GroupedEndResultTransformer.transform potentially adds a null element to a SolrDocumentList.

      The TextResponseWriter.writeSolrDocumentList method passes any null SolrDocument through to the JSONWriter.writeSolrDocument method leading to a NullPointerException at line 87.

        Attachments

        1. SOLR-13496.patch
          10 kB
          Christine Poerschke
        2. SOLR-13496.patch
          10 kB
          Christine Poerschke
        3. SOLR-13496.patch
          2 kB
          Christine Poerschke

          Activity

            People

            • Assignee:
              cpoerschke Christine Poerschke
              Reporter:
              cpoerschke Christine Poerschke
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: