[hibernate-issues] [Hibernate-JIRA] Resolved: (OGM-160) Invalid persistence unit configuration might result in NullPointerException

Emmanuel Bernard (JIRA) noreply at atlassian.com
Thu Apr 26 04:17:48 EDT 2012


     [ https://hibernate.onjira.com/browse/OGM-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bernard resolved OGM-160.
----------------------------------

    Resolution: Fixed

> Invalid persistence unit configuration might result in NullPointerException
> ---------------------------------------------------------------------------
>
>                 Key: OGM-160
>                 URL: https://hibernate.onjira.com/browse/OGM-160
>             Project: Hibernate OGM
>          Issue Type: Bug
>            Reporter: Sanne Grinovero
>            Assignee: Sanne Grinovero
>             Fix For: 4.0-next
>
>
> If the persistence unit name mentioned in the configuration file is not matching the name passed to the initialization method, the Persistence provider is expected to return null.
> The HibernateOgmPersistence is not prepared to deal with null return values from the delegate, and returns instead an unusable EntityManagerFactory.
> {code}
> Persistence.createEntityManagerFactory( "does-not-exist-PU" );
> {code}

--
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