axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsosno...@apache.org
Subject svn commit: r492898 - /webservices/axis2/branches/java/1_1/modules/jibx/src/org/apache/axis2/jibx/template/JibXDatabindingTemplate.xsl
Date Fri, 05 Jan 2007 04:40:10 GMT
Author: dsosnoski
Date: Thu Jan  4 20:40:09 2007
New Revision: 492898

URL: http://svn.apache.org/viewvc?view=rev&rev=492898
Log:
Check for null value when marshalling interface not found

Modified:
    webservices/axis2/branches/java/1_1/modules/jibx/src/org/apache/axis2/jibx/template/JibXDatabindingTemplate.xsl

Modified: webservices/axis2/branches/java/1_1/modules/jibx/src/org/apache/axis2/jibx/template/JibXDatabindingTemplate.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/jibx/src/org/apache/axis2/jibx/template/JibXDatabindingTemplate.xsl?view=diff&rev=492898&r1=492897&r2=492898
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/jibx/src/org/apache/axis2/jibx/template/JibXDatabindingTemplate.xsl
(original)
+++ webservices/axis2/branches/java/1_1/modules/jibx/src/org/apache/axis2/jibx/template/JibXDatabindingTemplate.xsl
Thu Jan  4 20:40:09 2007
@@ -94,6 +94,8 @@
                     new org.apache.axis2.jibx.JiBXDataSource(marshallable, bindingFactory);
                 org.apache.axiom.om.OMNamespace namespace = factory.createOMNamespace(bindingFactory.getElementNamespaces()[index],
null);
                 return factory.createOMElement(source, bindingFactory.getElementNames()[index],
namespace);
+            } else if (param == null) {
+                throw new RuntimeException("Cannot bind null value of type <xsl:value-of
select="@type"/>");
             } else {
                 throw new RuntimeException("No JiBX &lt;mapping> defined for class
<xsl:value-of select="@type"/>");
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message