Skip to main content
summaryrefslogtreecommitdiffstats
path: root/jpa
diff options
context:
space:
mode:
authorkmoore2011-10-31 14:41:05 +0000
committerkmoore2011-10-31 14:41:05 +0000
commit1f28607c9f0c9b9580ac3ed77293602289502d20 (patch)
treeace62c14446021131de1769faaf0f6e13b9416b7 /jpa
parentc3c0032d8a63ff53ecd4668411e96c77d48237a8 (diff)
downloadwebtools.dali-1f28607c9f0c9b9580ac3ed77293602289502d20.tar.gz
webtools.dali-1f28607c9f0c9b9580ac3ed77293602289502d20.tar.xz
webtools.dali-1f28607c9f0c9b9580ac3ed77293602289502d20.zip
362064 - NPE changing access type to PROPERTY in orm.xml without property methods
Diffstat (limited to 'jpa')
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/SpecifiedOrmPersistentAttribute.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/SpecifiedOrmPersistentAttribute.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/SpecifiedOrmPersistentAttribute.java
index 6d23dc71b6..04178ae078 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/SpecifiedOrmPersistentAttribute.java
+++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/context/orm/SpecifiedOrmPersistentAttribute.java
@@ -239,7 +239,7 @@ public abstract class SpecifiedOrmPersistentAttribute
}
if (getAccess() == AccessType.PROPERTY) {
JavaResourceMethod javaResourceGetter = this.getJavaResourceGetter(javaResourceType);
- JavaResourceMethod javaResourceSetter = AbstractJavaPersistentType.getValidSiblingSetMethod(javaResourceGetter, javaResourceType.getMethods());
+ JavaResourceMethod javaResourceSetter = javaResourceGetter == null ? null : AbstractJavaPersistentType.getValidSiblingSetMethod(javaResourceGetter, javaResourceType.getMethods());
if (javaResourceGetter == null && javaResourceSetter == null) {
// nothing in the resource inheritance hierarchy matches our name *and* access type
this.cachedJavaPersistentAttribute = null;

Back to the top