openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mprud...@apache.org
Subject svn commit: r563192 - /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceXMLMetaDataParser.java
Date Mon, 06 Aug 2007 17:04:30 GMT
Author: mprudhom
Date: Mon Aug  6 10:04:29 2007
New Revision: 563192

URL: http://svn.apache.org/viewvc?view=rev&rev=563192
Log:
OPENJPA240 added missing null check

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=563192&r1=563191&r2=563192
==============================================================================
--- 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 10:04:29 2007
@@ -169,7 +169,8 @@
      */
     private XMLMetaData parseXMLClassAnnotations() {
         // check immediately whether the class has JAXB XML annotations
-        if (_cls == null || !_cls.isAnnotationPresent(xmlTypeClass))
+        if (_cls == null || xmlTypeClass == null
+            || !_cls.isAnnotationPresent(xmlTypeClass))
             return null;
 
         // find / create metadata



Mime
View raw message