Mongo.Migration icon indicating copy to clipboard operation
Mongo.Migration copied to clipboard

NullReferenceException after upgrading MongoDB.Driver to 2.22.0

Open molszews opened this issue 1 year ago • 0 comments

Due to this commit MongoDB.Driver 2.22.0 will call DocumentVersionService.DetermineVersion() with null passed as the instance parameter causing NullReferenceException. This will happen if linq3 query uses DefaultIfEmpty() clause. There is no easy way to workaround this, seems like null check is needed in MigrationInterceptor before it determines the version

molszews avatar Oct 25 '23 07:10 molszews