[ 
https://issues.apache.org/jira/browse/UIMA-163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adam Lally closed UIMA-163.
---------------------------

    Resolution: Fixed

> CpeCasProcessors.removeCasProcessor always throws "invalid index" exception
> ---------------------------------------------------------------------------
>
>                 Key: UIMA-163
>                 URL: https://issues.apache.org/jira/browse/UIMA-163
>             Project: UIMA
>          Issue Type: Bug
>          Components: Collection Processing
>            Reporter: Adam Lally
>         Assigned To: Adam Lally
>            Priority: Critical
>             Fix For: 2.1
>
>
> I think there's a missing "else" in this code :-)
>   public void removeCpeCasProcessor(int aPosition) throws 
> CpeDescriptorException {
>     if (aPosition <= casProcessors.size()) {
>       casProcessors.remove(aPosition);
>     }
>     throw new CpeDescriptorException(CpmLocalizedMessage.getLocalizedMessage(
>             CPMUtils.CPM_LOG_RESOURCE_BUNDLE, 
> "UIMA_CPM_EXP_invalid_array_index__WARNING",
>             new Object[] { Thread.currentThread().getName() }));
>   }

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

        

Reply via email to