XStream
  1. XStream
  2. XSTR-611

DateConvertor not able to handle empty/null strings from XML

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Won't Fix
    • Affects Version/s: 1.3.1
    • Fix Version/s: None
    • Component/s: Converters
    • Labels:
      None

      Description

      For following XML mapped to User class with fields email (string) and dob (Date)

      <User><email></email><dob></dob></User>

      DateConvertor throws error because, it is trying to parse empty string.

      DateConvertor should be able to handle this by simply returning null (instead of throwing exception)

        People

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

          Dates

          • Created:
            Updated:
            Resolved: