Lucene - Core
  1. Lucene - Core
  2. LUCENE-4882

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: 4.3, Trunk
    • 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?

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development