[ http://jira.codehaus.org/browse/JIBX-46?page=history ]
     
Dennis Sosnoski resolved JIBX-46:
---------------------------------

    Resolution: Won't Fix
     Assign To: Dennis Sosnoski

You need to make the value optional (with usage="optional"). That way JiBX will 
just skip the CDATA component when the string is null.

> Exception with CDATA
> --------------------
>
>          Key: JIBX-46
>          URL: http://jira.codehaus.org/browse/JIBX-46
>      Project: JiBX
>         Type: Bug
>   Components: core
>     Versions: 1.0-beta3c
>  Environment: jibx beta3C
>     Reporter: Richard Paul
>     Assignee: Dennis Sosnoski

>
>
> not sure if I am using jibx incorrectly. But I get an exception in the 
> foollowing class :
> package org.jibx.runtime.impl;
> class UTF8Escaper
> in the following method :
> public void writeCData(String text, Writer writer) throws IOException {
> if the text parameter == null then the condition on the following line throws 
> an exception
> for (int i = 0; i < text.length(); i++) 
> In my class the text value is null.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to