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

          Uwe Schindler made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Shai Erera made changes -
          Link This issue duplicates LUCENE-4891 [ LUCENE-4891 ]
          Shai Erera made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Lucene Fields New [ 10121 ] New,Patch Available [ 10121, 10120 ]
          Assignee Shai Erera [ shaie ]
          Fix Version/s 5.0 [ 12321663 ]
          Fix Version/s 4.3 [ 12324143 ]
          Resolution Fixed [ 1 ]
          Shai Erera made changes -
          Attachment LUCENE-4882.patch [ 12575472 ]
          crocket made changes -
          Field Original Value New Value
          Description When I want 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?
          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?
          crocket created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development