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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira