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

NullPointerException in CasSerializerSupport when called from JsonCasSerializer and features reference the cas:NULL element

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          People

            schor Marshall Schor
            PhilipParker Philip Parker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: