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

NullPointerException in org/apache/solr/handler/component/ExpandComponent.java[240]

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: main (9.0)
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      Description

      Requesting the following URL causes Solr to return an HTTP 500 error response:

      http://localhost:8983/solr/films/select?expand=true&fq={!collapse%20field=id}&group=true&group.func=genre
      

      The error response seems to be caused by the following uncaught exception:

      ERROR (qtp689401025-38) [   x:films] o.a.s.s.HttpSolrCall null:java.lang.NullPointerException
      	at org.apache.solr.handler.component.ExpandComponent.process(ExpandComponent.java:240)
      	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:298)
      	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)
      	at org.apache.solr.core.SolrCore.execute(SolrCore.java:2559)
      	at org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:711)
      	at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:516)
      	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:394)
      	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:340)
      
      

      There is called method 'size' on the variable 'docList', which is null. The null value comes from parameter 'rb' (an instance of class 'org.apache.solr.handler.component.ResponseBuilder'), where 'rb.results.docList' is assigned to the mentioned local variable 'docList'.

      We found this bug using Diffblue Microservices Testing. Find more information on this fuzz testing campaign.

        Attachments

        1. home.zip
          376 kB
          Marek
        2. SOLR-13194.patch
          3 kB
          Charles Sanders

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                marek.trtik Marek
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: