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
When mapping nested children of a nullable property with MapProperty, Mapperly will use a nullable coalescing assignment expression to ensure that the parent is initialized and to prevent that a NullReferenceException does not occur.
This does not occur if the source member is required/init. Perhaps a nullable coalescing assignment could be inserted into the initializer to prevent errors from occuring.
When mapping nested children of a nullable property with
MapProperty
, Mapperly will use a nullable coalescing assignment expression to ensure that the parent is initialized and to prevent that aNullReferenceException
does not occur.This does not occur if the source member is
required
/init
. Perhaps a nullable coalescing assignment could be inserted into the initializer to prevent errors from occuring.Example of normal behaviour
Desired behaviour
Current generation
The text was updated successfully, but these errors were encountered: