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

Throw more appropriate exception when null is passed to Insert or InsertBatch

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • 1.2
    • 1.1
    • None
    • None

    Description

      Right now passing a null value as a document to Insert or InsertBatch doesn't get detected as an error client side and results in a confusing error message from the server. The driver will be changed to throw an ArgumentNullException instead.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: