You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Philip Parker (JIRA)" <de...@uima.apache.org> on 2016/05/03 18:35:12 UTC
[jira] [Created] (UIMA-4915) NullPointerException in
CasSerializerSupport when called from JsonCasSerializer and features
reference the cas:NULL element
Philip Parker created UIMA-4915:
-----------------------------------
Summary: 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.8.1SDK, 2.7.0SDK
Environment: All
Reporter: Philip Parker
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)