Object reference not set to an instance of an object exception when using NET Topology Suite in Select projection #23336
Labels
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
regression
Servicing-approved
type-bug
Milestone
After the upgrade from .NET Core 3.1 to .NET 5.0, we have noticed a systematic error on all our queries that include NET Topology Suite but only within certain scenarios when there is a nested Select statement.
Those queries are now throwing 'Object reference not set to an instance of an object' exception.
Full example can be found here:
https://github.com/App-Impact-Labs/ISSUE-EFNetTopologySuiteProjectionQueryError
In the example above, we have three entities:
Include stack traces
Include provider and version information
EF Core version: 5.0.0
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 5.0
Operating system: Windows 10 Enterprise
IDE: Visual Studio 2019 16.8.0
The text was updated successfully, but these errors were encountered: