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:
David J. Wisneski 2007-08-07 03:03:58 +00:00
parent 0b1b37dbba
commit 79c7b280d3
1 changed files with 2 additions and 1 deletions

View File

@ -271,7 +271,8 @@ public class AnnotationPersistenceXMLMetaDataParser {
field.setXmlnamespace((String) xmlAttributeNamespace.invoke( field.setXmlnamespace((String) xmlAttributeNamespace.invoke(
el.getAnnotation(xmlAttributeClass), new Object[]{})); el.getAnnotation(xmlAttributeClass), new Object[]{}));
} }
meta.addField(member.getName(), field); if (field != null)
meta.addField(member.getName(), field);
} }
} catch(Exception e) { } catch(Exception e) {
} }