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 am...@apache.org on 2006/12/15 07:44:43 UTC
svn commit: r487466 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
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