[
https://issues.apache.org/jira/browse/UIMA-649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12545058
]
Thilo Goetz commented on UIMA-649:
----------------------------------
Correct that: it's not an NPE, it's a CasRuntimeException. That's the fix we
put in, but we didn't document this in the API docs. So will add a test case
and update the docs.
> CAS.getAnnotationIndex(Type) does creates invalid index objects
> ---------------------------------------------------------------
>
> Key: UIMA-649
> URL: https://issues.apache.org/jira/browse/UIMA-649
> Project: UIMA
> Issue Type: Bug
> Components: Core Java Framework
> Affects Versions: 2.1, 2.2, 2.2.1
> Reporter: Thilo Goetz
> Assignee: Thilo Goetz
> Priority: Minor
> Fix For: 2.2.1
>
>
> CAS.getAnnotationIndex(Type type) should return null when type is not an
> annotation. Instead, a non-null index object is created that throws an NPE
> when iterator() is called. This sounds awfully familiar, but it must have
> slipped through the cracks somehow.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.