Skip to content

NullReferenceException after upgrading MongoDB.Driver to 2.22.0 #82

@molszews

Description

@molszews

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions