[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3479) NPE in ForeignKey

Emmanuel Bernard (JIRA) noreply at atlassian.com
Tue Sep 16 15:44:04 EDT 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31216#action_31216 ] 

Emmanuel Bernard commented on HHH-3479:
---------------------------------------

Where did you get that ForeignKey object from. I don't think we expose that API and you class is directly calling it.

> NPE in ForeignKey
> -----------------
>
>                 Key: HHH-3479
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3479
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.2.6
>            Reporter: Thomas Diesler
>
> java.lang.NullPointerException
> 	at org.hibernate.mapping.ForeignKey.isPhysicalConstraint(ForeignKey.java:125)
> 	at org.jbpm.db.JbpmSchema.getCleanSql(JbpmSchema.java:132)
> 	at org.jbpm.db.JbpmSchema.cleanSchema(JbpmSchema.java:214)
> 	at org.jbpm.persistence.db.DbPersistenceServiceFactory.cleanSchema(DbPersistenceServiceFactory.java:123)
> 	public boolean isPhysicalConstraint() {
> 		return referencedTable.isPhysicalTable() && 
> 				getTable().isPhysicalTable() && 
> 				!referencedTable.hasDenormalizedTables();
> 	}
> This NPE occurs when the referencedTable is null.
> There are several methods that assume that that the referencedTable is not null.
> The referencedEntityName however is not null in my use case.

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