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

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: 4.3, 6.0
    • Component/s: modules/facet
    • Labels:
      None
    • Lucene Fields:
      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

          Issue Links

            Activity

              People

              • Assignee:
                shaie Shai Erera
                Reporter:
                crocket crocket
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: