Details
Description
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.
You need to make the value optional (with usage="optional"). That way JiBX will just skip the CDATA component when the string is null.