[CSHARP-3923] Improve exception message when using structs without custom serializers in linq expressions Created: 20/Oct/21  Updated: 27/Oct/23  Resolved: 01/Nov/22

Status: Closed
Project: C# Driver
Component/s: Linq, LINQ3
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Unknown
Reporter: Boris Dogadov Assignee: Robert Stam
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CSHARP-3922 LINQ3: support calls to constructors ... Closed

 Description   

For example queryable().Select(_ => new Struct(...)) results in NullReferenceException.



 Comments   
Comment by Robert Stam [ 01/Nov/22 ]

Now that we support deserializing structs (as of CSHARP-3922) this is no longer an issue.

Comment by Robert Stam [ 20/Oct/21 ]

This looks like another case of CSHARP-3922, with the difference that the class being constructed is a struct.

We should solve CSHARP-3922 first and then see if there is anything left to do here.

Generated at Wed Feb 07 21:46:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.