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

NullPointerException in JSONWriter.writeSolrDocument

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 8.2, 9.0
    • None
    • 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
          2 kB
          Christine Poerschke
        2. SOLR-13496.patch
          10 kB
          Christine Poerschke
        3. SOLR-13496.patch
          10 kB
          Christine Poerschke

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: