cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r821173 - /cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/mtom/AbstractXOPType.java
Date Fri, 02 Oct 2009 21:27:58 GMT
Author: dkulp
Date: Fri Oct  2 21:27:55 2009
New Revision: 821173

URL: http://svn.apache.org/viewvc?rev=821173&view=rev
Log:
[CXF-2457] Fix NPE in AbstractXOPType

Modified:
    cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/mtom/AbstractXOPType.java

Modified: cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/mtom/AbstractXOPType.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/mtom/AbstractXOPType.java?rev=821173&r1=821172&r2=821173&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/mtom/AbstractXOPType.java
(original)
+++ cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/mtom/AbstractXOPType.java
Fri Oct  2 21:27:55 2009
@@ -36,6 +36,7 @@
 import org.apache.cxf.aegis.type.basic.Base64Type;
 import org.apache.cxf.aegis.xml.MessageReader;
 import org.apache.cxf.aegis.xml.MessageWriter;
+import org.apache.cxf.common.xmlschema.XmlSchemaConstants;
 import org.apache.cxf.helpers.DOMUtils;
 import org.apache.cxf.message.Attachment;
 import org.apache.ws.commons.schema.XmlSchemaElement;
@@ -74,6 +75,8 @@
         if (useXmimeBinaryType) {
         //      we use the XMIME type instead of the XSD type to allow for our content type
attribute.
             setSchemaType(XML_MIME_BASE64);
+        } else {
+            setSchemaType(XmlSchemaConstants.BASE64BINARY_QNAME);
         }
     }
     



Mime
View raw message