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

BsonBinaryData constructor throws incorrect ArgumentException message

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial - P5 Trivial - P5
    • 2.5.1
    • 2.5
    • BSON
    • None
    • Fully Compatible

    Description

      Error thrown in the lines:

      var message = string.Format(
                              "SubType must be {0}, not {1}, when GuidRepresentation is {2}.",
                              expectedSubType, subType, GuidRepresentation);
      throw new ArgumentException(message);
      

      However this.GuidRepresentation has yet to be initialized, parameter should actually be guidRepresentation.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            james.hadwen James Hadwen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: