[ https://issues.apache.org/jira/browse/LUCENE-4882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13614928#comment-13614928 ]
Shai Erera edited comment on LUCENE-4882 at 3/27/13 4:50 AM: ------------------------------------------------------------- bq. It turned out that StandardFacetsAccumulator inherited create from FacetsAccumulator. Ahh, right. That's why in eclipse I mark these things as warnings because it's dangerous to call static methods in these cases. At any rate, this is just a temporary workaround until 4.3. Thanks for bringing closure! was (Author: shaie): bq. It turned out that StandardFacetsAccumulator inherited create from FacetsAccumulator. Ahh, right. That's why in eclipse I mark these things as warnings because it's dangerous to call static methods in these cases. At any rate, this is just a temporary workaround until 4.3. Thanks for bringing closure, I'll close the issue. > FacetsAccumulator.java:185 throws NullPointerException if it's given an empty > CategoryPath. > ------------------------------------------------------------------------------------------- > > Key: LUCENE-4882 > URL: https://issues.apache.org/jira/browse/LUCENE-4882 > Project: Lucene - Core > Issue Type: Bug > Components: modules/facet > Affects Versions: 4.2 > Reporter: crocket > Assignee: Shai Erera > Priority: Critical > Fix For: 5.0, 4.3 > > Attachments: LUCENE-4882.patch > > > 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? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org