[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3479) NPE in ForeignKey
Thomas Diesler (JIRA)
noreply at atlassian.com
Sat Sep 13 09:48:06 EDT 2008
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