Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-163

CpeCasProcessors.removeCasProcessor always throws "invalid index" exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 2.1
    • Collection Processing
    • None

    Description

      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() }

      ));
      }

      Attachments

        Activity

          People

            alally Adam P. Lally
            alally Adam P. Lally
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: