Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullReferenceException after upgrading MongoDB.Driver to 2.22.0 #82

Open
molszews opened this issue Oct 25, 2023 · 0 comments
Open

NullReferenceException after upgrading MongoDB.Driver to 2.22.0 #82

molszews opened this issue Oct 25, 2023 · 0 comments

Comments

@molszews
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant