From 79c7b280d3cf397fb5527420a12565fd2c2b99b6 Mon Sep 17 00:00:00 2001 From: "David J. Wisneski" Date: Tue, 7 Aug 2007 03:03:58 +0000 Subject: [PATCH] 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 --- .../persistence/AnnotationPersistenceXMLMetaDataParser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { }