axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r487466 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
Date Fri, 15 Dec 2006 06:44:43 GMT
Author: amilas
Date: Thu Dec 14 22:44:43 2006
New Revision: 487466

URL: http://svn.apache.org/viewvc?view=rev&rev=487466
Log:
currently, it is always assume that the documentation element always have a child element.
so this causes an issue if 
the documentaion element is empty. (see AXIS2-1851). put a check for first element as well.

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?view=diff&rev=487466&r1=487465&r2=487466
==============================================================================
--- 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
Thu Dec 14 22:44:43 2006
@@ -232,7 +232,7 @@
             // copy the documentation element content to the description
             Element documentationElement = wsdl4jDefinition
                     .getDocumentationElement();
-            if (documentationElement != null) {
+            if ((documentationElement != null) && (documentationElement.getFirstChild()
!= null)) {
                 Node firstChild = documentationElement.getFirstChild();
                 String serviceDes;
                 if (firstChild.getNodeType() == Node.TEXT_NODE) {



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