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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to