Null property during serialization breaks deserialization with @BsonCreator

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.6.0
    • Affects Version/s: 3.5.0
    • Component/s: POJO
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If a POJO is saved with a field with a null value, it ends up not being serialized in the resulting Json, causing the deserialization to fail with a missing field exception:

      Could not construct new instance of: Candidate. Missing the following properties: [mothersName]

      In this case, my POJO has the property `mothersName` as `null`.

              Assignee:
              Ross Lawley
              Reporter:
              Paulo Melo
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: