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 "Gordon Rogers (JIRA)" <ax...@ws.apache.org> on 2006/07/07 16:50:29 UTC

[jira] Created: (AXIS-2522) JavaServiceDesc.getOperationsByQName doesn't correctly handle empty list of operations

JavaServiceDesc.getOperationsByQName doesn't correctly handle empty list of operations
--------------------------------------------------------------------------------------

         Key: AXIS-2522
         URL: http://issues.apache.org/jira/browse/AXIS-2522
     Project: Apache Axis
        Type: Bug

    Versions: 1.4    
    Reporter: Gordon Rogers
    Priority: Minor


In the getOperationsByQName method of JavaServiceDesc. I'm receiving an IndexOutOfBoundsException.

When the call is made to getSyncedOperationsForName(implClass, ((OperationDesc)overloads.get(0)).getName()); (on line 520) there is a chance that the overloads list could be empty.

I would suggest as a potential fix that when the null check is made on overloads a size check is also made. When I've changed the code locally to do this I receive a more meaningful fault string.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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