Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.0-beta3c
    • Fix Version/s: 1.0-RC0
    • Component/s: core
    • Labels:
      None
    • Environment:
      jibx beta3C
    • Number of attachments :
      0

      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.

        Activity

        Hide
        Dennis Sosnoski added a comment -

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

        Show
        Dennis Sosnoski added a comment - You need to make the value optional (with usage="optional"). That way JiBX will just skip the CDATA component when the string is null.

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Richard Paul
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: