]
Emmanuel Bernard updated HSEARCH-745:
-------------------------------------
Fix Version/s: (was: 4.0.0.Final)
4.0.0.CR2
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
Fix For: 3.4.1.Final, 4.0.0.CR2
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.
For more information on JIRA, see: