Author: dgeraskov
Date: 2008-02-19 09:04:52 -0500 (Tue, 19 Feb 2008)
New Revision: 6423
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/Shape.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1794
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/Shape.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/Shape.java 2008-02-19
14:04:02 UTC (rev 6422)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/Shape.java 2008-02-19
14:04:52 UTC (rev 6423)
@@ -212,7 +212,10 @@
}
else if (PROPERTY_CLASS.equals(propertyId)) {
if (getOrmElement() instanceof Property) {
- return ((Property) getOrmElement()).getPersistentClass().getClassName();
+ if (((Property) getOrmElement()).getPersistentClass() != null)
+ return ((Property) getOrmElement()).getPersistentClass().getClassName();
+ else
+ return null;
}
}
else if (PROPERTY_SELECT.equals(propertyId)) {