-
-
Notifications
You must be signed in to change notification settings - Fork 81
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 with V4.X when trying to map #381
Comments
What is this Mapper library? |
Mapster, specifically this: https://github.com/MapsterMapper/Mapster/wiki/FastExpressionCompiler |
Could you minimize your example so it can be pit into isolated test? |
I'll try as soon as I find time. I'll be on vacation until new year and have some more pressing things to do today. The main problem is that this issue only occured on our staging environment hosted in AKS while it worked locally. I tried to get some meaningful info but since all debugging tools don't work in our pods due to this issue, it's hard to debug. I'll report back if I can reproduce it again and can deliver you something. Until then I guess you can ignore this. |
I am experiencing same thing. If I update, site gets null reference errors unlike before. |
@cblaze22 Again, if you can produce the small reproducible case with the Test, it will help a lot. |
it may be related to #386, specifically to the caching of the nullable type members |
Let see if it's fixed |
The v4.1.0 with the fix is out on NuGet |
Unfortunately still not working for me
|
@cblaze22 Pity, so I still need a smaller reproducible example. |
Unfortunately this project is too big and uses Entity Framework so to get a small project would take too much time to do . |
We've first discovered this issue when upgrading to .NET 8 (as we also upgraded all packages) and thought it was a .NET issue. After hours and days of investigation we found out that FastExpressionCompiler was the culprit (badly enough I forgot we were using it, otherwise I would have found it out way faster probably, but well).
When upgrading from 3.4.0-preview01 to 4.0 we suddenly get the following exception when trying to map our projects:
The mapping looks as follows:
When removing the fast expression compiler it works. Any idea how that happens? Sadly we don't get any useful exception message, but something seems to be off between those two versions. Big regression.
Thanks!
The text was updated successfully, but these errors were encountered: