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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 1.2
    • Affects Version/s: 1.1
    • Component/s: None
    • None

      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.

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

              Created:
              Updated:
              Resolved: