Skip to content

Fixed: crash when building ModelState error response #829

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

Closed
wants to merge 1 commit into from
Closed

Fixed: crash when building ModelState error response #829

wants to merge 1 commit into from

Conversation

bart-degreed
Copy link
Contributor

@bart-degreed bart-degreed commented Sep 14, 2020

It may happen that propertyName contains something like 'Parent.Child.Some', so property becomes null and we crash on the next line with a NullReferenceException. This fix returns the original value if we are unable to translate between private/public names.

Found this while trying to find the root cause for #671.

It may happen that `propertyName` contains something like 'Parent.Child.Some', so `property` becomes `null` and we crash on the next line with a `NullReferenceException`. This fix returns the original value if we are unable to translate between private/public names.
@bart-degreed bart-degreed requested a review from maurei September 14, 2020 15:40
@bart-degreed
Copy link
Contributor Author

Superseded by #831.

@bart-degreed bart-degreed deleted the crashfix-modelstate-error branch November 10, 2020 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant