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

Issue with nullable parameter

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.4.3
    • Affects Version/s: 2.4.2
    • Component/s: Linq
    • None

      We are experiencing a null reference exception when attempting to build a filter using a nullable parameter, even though the value is not null.

      I have attached a sample file to illustrate the error, if you attempt to use a nullable enumeration as a Type in a LINQ filter you get a null reference exception. I'm aware the type on the serialised class (User) is not nullable, but the nullable parameter is used to distinguish whether a filter is needed or not.

      We have isolated this down to the upgrade between 2.4.1 and 2.4.2.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            rob.offer@footy.com Rob Offer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: