Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-674

Error serializing key-value pairs with a null value

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 1.7, 1.8
    • 1.8
    • None
    • None

    Description

      If the value in a KeyValuePair is null, the following line (173 in 1.7, 170 in 1.8) in the KeyValuePairSerializer throws an exception:

      var valueSerializer = GetValueSerializer(keyValuePair.Value.GetType());

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            dhgoldman Daniel Goldman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: