Skip to content
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 when using setter-only property #643

Closed
radverg opened this issue Oct 20, 2021 · 0 comments · Fixed by #698
Closed

NullReferenceException when using setter-only property #643

radverg opened this issue Oct 20, 2021 · 0 comments · Fixed by #698

Comments

@radverg
Copy link

radverg commented Oct 20, 2021

Describe the bug
My datamodel contained a property with only purpose to transform value and save it to other property/field. Therefore, the property had only a setter defined. The library throws NullReferenceException (wrapped in YamlException) when attempting to deserialize into such model. Such exception tells nothing about what is happening and took me hours to figure it out.

To Reproduce
Create simple class containing property with defined setter, but not getter. Try to deserialize yaml into the class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant