[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-6594) Validation of removed configuration file property calls NPE in persistence.xml

Dmitry Geraskov (JIRA) jira-events at lists.jboss.org
Thu Jul 8 06:52:46 EDT 2010


     [ https://jira.jboss.org/browse/JBIDE-6594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Geraskov resolved JBIDE-6594.
------------------------------------

    Resolution: Done


> Validation of removed configuration file property calls NPE in persistence.xml
> ------------------------------------------------------------------------------
>
>                 Key: JBIDE-6594
>                 URL: https://jira.jboss.org/browse/JBIDE-6594
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Hibernate
>    Affects Versions: 3.1.1
>            Reporter: Dmitry Geraskov
>            Assignee: Dmitry Geraskov
>             Fix For: 3.2.0.M1
>
>
> To reproduce:
> 1. create jpa project
> 2. set configuration file at Hibernate tab to something
> 3. go to the source and remove the declaration
> 4. Save file
> java.lang.NullPointerException at org.jboss.tools.hibernate.jpt.core.internal.context.HibernatePersistenceUnit.validateHibernateConfigurationFileExists(HibernatePersistenceUnit.java:123)
> 	at org.jboss.tools.hibernate.jpt.core.internal.context.HibernatePersistenceUnit.validate(HibernatePersistenceUnit.java:86)
> 	at org.eclipse.jpt.core.internal.jpa1.context.persistence.GenericPersistence.validatePersistenceUnit(GenericPersistence.java:282)
> 	at org.eclipse.jpt.core.internal.jpa1.context.persistence.GenericPersistence.validate(GenericPersistence.java:234)
> 	at org.eclipse.jpt.core.internal.jpa1.context.persistence.GenericPersistenceXml.validate(GenericPersistenceXml.java:226)
> 	at org.eclipse.jpt.core.internal.jpa1.context.GenericRootContextNode.validate(GenericRootContextNode.java:201)
> 	at org.eclipse.jpt.core.internal.AbstractJpaProject.validate(AbstractJpaProject.java:1303)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list