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

BsonBinaryData constructor throws incorrect ArgumentException message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5.1
    • Component/s: Bson
    • Labels:
      None
    • Backwards Compatibility:
      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

          Issue Links

            Activity

              People

              Assignee:
              rstam Robert Stam
              Reporter:
              james.hadwen James Hadwen
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: