axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r431629 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
Date Tue, 15 Aug 2006 16:06:27 GMT
Author: dims
Date: Tue Aug 15 09:06:26 2006
New Revision: 431629

URL: http://svn.apache.org/viewvc?rev=431629&view=rev
Log:
Prevent NPE if the message part is not found.

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java?rev=431629&r1=431628&r2=431629&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
Tue Aug 15 09:06:26 2006
@@ -1551,6 +1551,10 @@
                         throw new AxisFault("message " + soapHeader.getMessage() + " not
found in the WSDL ");
                     }
                     Part msgPart = msg.getPart(soapHeader.getPart());
+                    if (msgPart == null) {
+                        //todo i18n this
+                        throw new AxisFault("message part " + soapHeader.getPart() + " not
found in the WSDL ");
+                    }
                     headerMessage.setElement(msgPart.getElementName());
                 }
                 headerMessage.setMessage(soapHeader.getMessage());



---------------------------------------------------------------------
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