cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r549004 - /incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java
Date Wed, 20 Jun 2007 08:56:18 GMT
Author: ffang
Date: Wed Jun 20 01:56:17 2007
New Revision: 549004

URL: http://svn.apache.org/viewvc?view=rev&rev=549004
Log:
fix build failure

Modified:
    incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java

Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java?view=diff&rev=549004&r1=549003&r2=549004
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java
(original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBEncoderDecoder.java
Wed Jun 20 01:56:17 2007
@@ -243,8 +243,8 @@
                 unmarshalWithClass = false;
             } 
             
-            if (clazz.getName().equals("javax.xml.datatype.XMLGregorianCalendar")
-                    || clazz.getName().equals("javax.xml.datatype.Duration")) {
+            if (clazz != null && (clazz.getName().equals("javax.xml.datatype.XMLGregorianCalendar")
+                    || clazz.getName().equals("javax.xml.datatype.Duration"))) {
                 //special treat two jaxb defined built-in abstract types
                 unmarshalWithClass = true;
             }



Mime
View raw message