mirror of https://github.com/apache/openjpa.git
OPENJPA-240 check null before adding field meta
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563377 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0b1b37dbba
commit
79c7b280d3
|
@ -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) {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue