[
https://issues.apache.org/jira/browse/UIMA-4915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marshall Schor updated UIMA-4915:
---------------------------------
Fix Version/s: 3.0.0SDKexp
> NullPointerException in CasSerializerSupport when called from
> JsonCasSerializer and features reference the cas:NULL element
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: UIMA-4915
> URL: https://issues.apache.org/jira/browse/UIMA-4915
> Project: UIMA
> Issue Type: Bug
> Components: Core Java Framework
> Affects Versions: 2.7.0SDK, 2.8.1SDK
> Environment: All
> Reporter: Philip Parker
> Assignee: Marshall Schor
> Fix For: 3.0.0SDKexp, 2.8.2SDK
>
>
> When serializing a CAS, if there are references to the NULL element
> (<cas:NULL xmi:id="0"/>) in the features for an annotation, a
> NullPointerException is thrown at line 693 of CasSerializerSupport. It
> appears that the ll_getTypeForCode(0) returns null, resulting in a
> NullPointerException when the "getName()" method is called on the return
> object.
> The same CAS can successfully be serialized to XML using the XmlCasSerializer.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)