Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4882

FacetsAccumulator.java:185 throws NullPointerException if it's given an empty CategoryPath.

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 4.2
    • 4.3, 6.0
    • modules/facet
    • None
    • New, Patch Available

    Description

      When I wanted to count root categories, I used to pass "new CategoryPath(new String[0])" to a CountFacetRequest.

      Since upgrading lucene from 4.1 to 4.2, that threw ArrayIndexOfOutBoundsException, so I passed CategoryPath.EMPTY to a CountFacetRequest instead, and this time I got NullPointerException.

      It all originates from FacetsAccumulator.java:185

      Does someone conspire to prevent others from counting root categories?

      Attachments

        1. LUCENE-4882.patch
          5 kB
          Shai Erera

        Issue Links

          Activity

            People

              shaie Shai Erera
              crocket anonymous
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: