uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marshall Schor (JIRA)" <...@uima.apache.org>
Subject [jira] Updated: (UIMA-1753) XmiCasSerializer passes null for an attribute's URI and localName
Date Sat, 07 Aug 2010 01:07:17 GMT

     [ https://issues.apache.org/jira/browse/UIMA-1753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Marshall Schor updated UIMA-1753:
---------------------------------

    Fix Version/s: 2.3.1

> XmiCasSerializer passes null for an attribute's URI and localName
> -----------------------------------------------------------------
>
>                 Key: UIMA-1753
>                 URL: https://issues.apache.org/jira/browse/UIMA-1753
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 2.3
>            Reporter: Greg Holmberg
>            Assignee: Adam Lally
>            Priority: Minor
>             Fix For: 2.3.1
>
>
> XmiCasSerializer.XmiCasDocSerializer has this method: 
>      private void addAttribute(AttributesImpl attrs, String attrName, String attrValue)
{ 
>          attrs.addAttribute(null, null, attrName, cdataType, attrValue); 
>      } 
> This causes a NullPointerException in some ContentHandlers (such as those for EXI from
Siemens and AgileDelta).
> The JavaDoc says to pass an empty String for these parameters when you don't have a good
value for them.
> So the line should be changed to:
>     attrs.addAttribute("", "", attrName, cdataType, attrValue); 
> I tested that change with the AgileDelta ContentHandler, and it no longer threw any exceptions.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message