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

Issue with nullable parameter

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • 2.4.3
    • 2.4.2
    • Linq
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: