axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r531023 - /webservices/axis/trunk/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java
Date Sat, 21 Apr 2007 12:59:29 GMT
Author: dug
Date: Sat Apr 21 05:59:28 2007
New Revision: 531023

URL: http://svn.apache.org/viewvc?view=rev&rev=531023
Log:
fix an outOfBounds exception that was introduced recently

Modified:
    webservices/axis/trunk/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java

Modified: webservices/axis/trunk/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java?view=diff&rev=531023&r1=531022&r2=531023
==============================================================================
--- webservices/axis/trunk/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java (original)
+++ webservices/axis/trunk/java/src/org/apache/axis/wsdl/symbolTable/SymbolTable.java Sat
Apr 21 05:59:28 2007
@@ -1793,8 +1793,10 @@
         if (wrapped) {
             // Remember the appropriate response QName...
             List outParts = output.getMessage().getOrderedParts(null);
-            QName respQName = ((Part)(outParts.get(0))).getElementName();
-            parameters.responseQName = respQName;
+            if ( outParts.size() > 0 ) {
+              QName respQName = ((Part)(outParts.get(0))).getElementName();
+              parameters.responseQName = respQName;
+            }
         }
 
         // Some special case logic for JAX-RPC, but also to make things



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