diff options
author | kmoore | 2009-10-09 15:53:45 +0000 |
---|---|---|
committer | kmoore | 2009-10-09 15:53:45 +0000 |
commit | 84f57a53dffe0e9527da5ba99128772ff29c137f (patch) | |
tree | afbed3bf7d93dbea6e578b9d743672f3a7ee0829 /jpa | |
parent | 6a9aa4ed12583373a47b1dabbca61e381da4a555 (diff) | |
download | webtools.dali-84f57a53dffe0e9527da5ba99128772ff29c137f.tar.gz webtools.dali-84f57a53dffe0e9527da5ba99128772ff29c137f.tar.xz webtools.dali-84f57a53dffe0e9527da5ba99128772ff29c137f.zip |
fixed NPE when the attribute name is null
Diffstat (limited to 'jpa')
-rw-r--r-- | jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/orm/AbstractOrmAttributeMapping.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/orm/AbstractOrmAttributeMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/orm/AbstractOrmAttributeMapping.java index 6db2c2cc6f..56d20788b5 100644 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/orm/AbstractOrmAttributeMapping.java +++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/orm/AbstractOrmAttributeMapping.java @@ -196,7 +196,7 @@ public abstract class AbstractOrmAttributeMapping<T extends XmlAttributeMapping> } public AttributeMapping resolveAttributeMapping(String name) { - if (getName().equals(name)) { + if (getName() != null && getName().equals(name)) { return this; } return null; |