XStream
  1. XStream
  2. XSTR-529

NullPointerException serializing an implicit list with NULL elements

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.3.1
    • Component/s: Converters
    • Labels:
      None
    • JDK version and platform:
      Sun 1.5.0_15 for Windows

      Description

      While create xml of an object which have a list contains NULL-elements a NullPointerException is thrown.
      Stacktrace:

      java.lang.NullPointerException
      at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:93)
      at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:75)
      at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:109)
      at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:66)
      at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:41)
      at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:59)
      at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:50)
      at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:73)
      at com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.marshal(ReferenceByXPathMarshallingStrategy.java:34)
      at com.thoughtworks.xstream.XStream.marshal(XStream.java:745)
      at com.thoughtworks.xstream.XStream.marshal(XStream.java:734)
      at com.thoughtworks.xstream.XStream.toXML(XStream.java:715)
      at com.thoughtworks.xstream.XStream.toXML(XStream.java:705)

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Ralf Thielow
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: