[hibernate-issues] [Hibernate-JIRA] Resolved: (HSEARCH-745) Empty Index and FacetManagerImpl.getFacets() NullPointerException

Emmanuel Bernard (JIRA) noreply at atlassian.com
Thu Aug 4 08:03:02 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bernard resolved HSEARCH-745.
--------------------------------------

    Resolution: Fixed

> 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
>            Assignee: Emmanuel Bernard
>             Fix For: 3.4.1, 4.0
>
>
> 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: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list