openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mprud...@apache.org
Subject svn commit: r563184 - /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceXMLMetaDataParser.java
Date Mon, 06 Aug 2007 16:48:13 GMT
Author: mprudhom
Date: Mon Aug  6 09:48:10 2007
New Revision: 563184

URL: http://svn.apache.org/viewvc?view=rev&rev=563184
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=563184&r1=563183&r2=563184
==============================================================================
--- 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 09:48:10 2007
@@ -169,7 +169,7 @@
      */
     private XMLMetaData parseXMLClassAnnotations() {
         // check immediately whether the class has JAXB XML annotations
-        if (!_cls.isAnnotationPresent(xmlTypeClass))
+        if (_cls == null || !_cls.isAnnotationPresent(xmlTypeClass))
             return null;
 
         // find / create metadata



Mime
View raw message