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

NPE in ExpandComponent

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.4
    • Component/s: None
    • Labels:

      Description

      Truncated Stack trace

      Caused by: java.lang.NullPointerException
      	at org.apache.lucene.util.BytesRef.compareTo(BytesRef.java:162)
      	at org.apache.lucene.util.BytesRef.compareTo(BytesRef.java:36)
      	at java.base/java.util.Comparators$NaturalOrderComparator.compare(Comparators.java:52)
      	at java.base/java.util.Comparators$NaturalOrderComparator.compare(Comparators.java:47)
      	at org.apache.lucene.util.ArrayTimSorter.compare(ArrayTimSorter.java:48)
      	at org.apache.lucene.util.TimSorter.nextRun(TimSorter.java:109)
      	at org.apache.lucene.util.TimSorter.sort(TimSorter.java:201)
      	at org.apache.lucene.util.ArrayUtil.timSort(ArrayUtil.java:452)
      	at org.apache.lucene.util.ArrayUtil.timSort(ArrayUtil.java:471)
      	at org.apache.lucene.util.ArrayUtil.timSort(ArrayUtil.java:479)
      	at org.apache.lucene.search.TermInSetQuery.<init>(TermInSetQuery.java:85)
      	at org.apache.lucene.search.TermInSetQuery.<init>(TermInSetQuery.java:107)
      	at org.apache.solr.handler.component.ExpandComponent.getGroupQuery(ExpandComponent.java:746)
      	at org.apache.solr.handler.component.ExpandComponent.process(ExpandComponent.java:330)
      	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:328)
      	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:198)
      	at org.apache.solr.core.SolrCore.execute(SolrCore.java:2583)
      	at org.apache.solr.util.TestHarness.query(TestHarness.java:339)
      	at org.apache.solr.util.TestHarness.query(TestHarness.java:321)
      	at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:972)
      

      This could happen when expand component is used without collapse and docs returned have fewer unique values

        Attachments

        1. SOLR-13877.patch
          8 kB
          Munendra S N

          Activity

            People

            • Assignee:
              munendrasn Munendra S N
              Reporter:
              munendrasn Munendra S N
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: