You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2007/04/12 03:37:59 UTC

svn commit: r527744 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/MethodMarshallerUtils.java

Author: dims
Date: Wed Apr 11 18:37:58 2007
New Revision: 527744

URL: http://svn.apache.org/viewvc?view=rev&rev=527744
Log:
throw an exception instead of an NPE

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/MethodMarshallerUtils.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/MethodMarshallerUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/MethodMarshallerUtils.java?view=diff&rev=527744&r1=527743&r2=527744
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/MethodMarshallerUtils.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/marshaller/impl/alt/MethodMarshallerUtils.java Wed Apr 11 18:37:58 2007
@@ -259,6 +259,11 @@
                     index++;
                 }
 
+                if(block == null){
+                    log.info("Block is null");
+                    throw new XMLStreamException("Block is null in getPDElements");
+                }
+
                 Element element = new Element(block.getBusinessObject(true), block.getQName());
                 PDElement pde = new PDElement(pd, element, unmarshalByJavaType == null ? null :
                         unmarshalByJavaType[i]);



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