Author: mdryakhlenkov
Date: 2007-08-29 10:12:00 -0400 (Wed, 29 Aug 2007)
New Revision: 3403
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OrmModelImageVisitor.java
Log:
JBIDE-862: ClassNotFoundException on open mapping diagram
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OrmModelImageVisitor.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OrmModelImageVisitor.java 2007-08-29
13:20:49 UTC (rev 3402)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/OrmModelImageVisitor.java 2007-08-29
14:12:00 UTC (rev 3403)
@@ -79,12 +79,12 @@
public Object visitPersistentField(Property field) {
if (field != null) {
- if (field.getPersistentClass().getVersion() == field) {
+ if (field.getPersistentClass() != null &&
field.getPersistentClass().getVersion() == field) {
return ViewPlugin
.getImageDescriptor(BUNDLE
.getString("OrmModelImageVisitor.PersistentFieldSimple_version"));
}
- if (field.getPersistentClass().getIdentifierProperty() == field) {
+ if (field.getPersistentClass() != null &&
field.getPersistentClass().getIdentifierProperty() == field) {
return ViewPlugin
.getImageDescriptor(BUNDLE
.getString("OrmModelImageVisitor.PersistentFieldSimple_id"));
Show replies by date