diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceXMLMetaDataParser.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceXMLMetaDataParser.java index 5a41978eb..8876d2cff 100644 --- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceXMLMetaDataParser.java +++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceXMLMetaDataParser.java @@ -271,7 +271,8 @@ public class AnnotationPersistenceXMLMetaDataParser { field.setXmlnamespace((String) xmlAttributeNamespace.invoke( el.getAnnotation(xmlAttributeClass), new Object[]{})); } - meta.addField(member.getName(), field); + if (field != null) + meta.addField(member.getName(), field); } } catch(Exception e) { }