XStream
  1. XStream
  2. XSTR-574

AbstractReferenceUnmarshaller cannot handle null values for references

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: Converters
    • Labels:
      None

      Description

      For my custom converter, I would sometimes like to return null when unmarshalling. If there is a reference to it further down in the xml, I would expect that to be set to null as well. However, AbstractReferenceUnmarshaller.convert() will assume a null value means the reference key was not in the map, and throw an exception. Instead it should use the containsKey() method to check whether or not the key exists in the map.

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Sushant Prakash
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: