You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ x] I can reproduce the bug using the latest prerelease version
[ x] I have searched existing discussion and issue to avoid duplicates
Describe the bug
When mapping multiple properties to the same nested object the nested object is not initialized when some conditions are met. It seems that AllowNullPropertyAssignment = false should be set and the value of the first source property should be null
Please do the checklist before filing an issue:
Describe the bug
When mapping multiple properties to the same nested object the nested object is not initialized when some conditions are met. It seems that
AllowNullPropertyAssignment = false
should be set and the value of the first source property should benull
Declaration code
A sample program triggering the bug could be found here: https://github.com/martijnkagie/mapperly-null-reference-bug
Actual relevant generated code
Expected relevant generated code
Reported relevant diagnostics
N/A
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: