Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmoore2008-05-12 12:19:40 +0000
committerkmoore2008-05-12 12:19:40 +0000
commit01afce2e2a6133db36f63f7f8fef800026114759 (patch)
treef7bfff6f02b00e2f7965a283c81e595dca9c9475
parent809a6f00c6e70481292fcdd3f673e43232efa477 (diff)
downloadwebtools.dali-01afce2e2a6133db36f63f7f8fef800026114759.tar.gz
webtools.dali-01afce2e2a6133db36f63f7f8fef800026114759.tar.xz
webtools.dali-01afce2e2a6133db36f63f7f8fef800026114759.zip
231147 - NPE with unmapped mapping in orm.xml
-rw-r--r--jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/orm/details/OrmPersistentAttributeDetailsPage.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/orm/details/OrmPersistentAttributeDetailsPage.java b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/orm/details/OrmPersistentAttributeDetailsPage.java
index 69ebbb3288..49bc907d32 100644
--- a/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/orm/details/OrmPersistentAttributeDetailsPage.java
+++ b/jpa/plugins/org.eclipse.jpt.ui/src/org/eclipse/jpt/ui/internal/orm/details/OrmPersistentAttributeDetailsPage.java
@@ -167,6 +167,9 @@ public class OrmPersistentAttributeDetailsPage extends PersistentAttributeDetail
*/
@Override
protected void mappingPageChanged(JpaComposite<AttributeMapping> mappingComposite) {
+ if (mappingComposite == null) {
+ return;
+ }
boolean enabled = false;
if (subject() != null && subject().getParent() != null) {

Back to the top