openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wisnes...@apache.org
Subject svn commit: r563377 - /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceXMLMetaDataParser.java
Date Tue, 07 Aug 2007 03:03:59 GMT
Author: wisneskid
Date: Mon Aug  6 20:03:58 2007
New Revision: 563377

URL: http://svn.apache.org/viewvc?view=rev&rev=563377
Log:
OPENJPA-240 check null before adding field meta

Modified:
    openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceXMLMetaDataParser.java

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceXMLMetaDataParser.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceXMLMetaDataParser.java?view=diff&rev=563377&r1=563376&r2=563377
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceXMLMetaDataParser.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceXMLMetaDataParser.java
Mon Aug  6 20:03:58 2007
@@ -271,7 +271,8 @@
                     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) {
         }



Mime
View raw message