[hibernate-issues] [Hibernate-JIRA] Created: (HSEARCH-745) Empty Index and FacetManagerImpl.getFacets() NullPointerException
Mike Pugmire (JIRA)
noreply at atlassian.com
Tue May 10 01:10:59 EDT 2011
Empty Index and FacetManagerImpl.getFacets() NullPointerException
-----------------------------------------------------------------
Key: HSEARCH-745
URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-745
Project: Hibernate Search
Issue Type: Bug
Components: engine
Affects Versions: 3.4.0.Final
Environment: Hibernate 3.6.4.Final, H2
Reporter: Mike Pugmire
When an index is empty and an attempt is made to retrieve a facet with facetManager.getFacets(facetingName) a NullPointerException is thrown as facetResults is null when facetResult.get( facetingName ) is called on line 112.
{code}
java.lang.NullPointerException
at org.hibernate.search.query.engine.impl.FacetManagerImpl.getFacets(FacetManagerImpl.java:112)
{code}
I'm guessing an empty List<Facet> is an appropriate return value for this situation?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list