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

MaybeStruct serialization constructor call throws exception in none case #81

Closed
stefan-lindegger opened this issue Apr 27, 2020 · 0 comments · Fixed by #83
Closed

MaybeStruct serialization constructor call throws exception in none case #81

stefan-lindegger opened this issue Apr 27, 2020 · 0 comments · Fixed by #83
Labels
Bug Something isn't working
Milestone

Comments

@stefan-lindegger
Copy link
Member

stefan-lindegger commented Apr 27, 2020

Bug in line:

this.value = MaybeUtils.GetDeserializedValue<T>(info, nameof(this.value));

SerializationInfo value is casted into T instead of T?.

@stefan-lindegger stefan-lindegger added the Bug Something isn't working label Apr 27, 2020
stefan-lindegger pushed a commit to stefan-lindegger/BBT.Maybe that referenced this issue Apr 28, 2020
stefan-lindegger pushed a commit to stefan-lindegger/BBT.Maybe that referenced this issue Apr 28, 2020
stefan-lindegger pushed a commit to stefan-lindegger/BBT.Maybe that referenced this issue Apr 28, 2020
@pascalberger pascalberger added this to the 3.1.0 milestone Apr 28, 2020
stefan-lindegger pushed a commit to stefan-lindegger/BBT.Maybe that referenced this issue Apr 29, 2020
stefan-lindegger added a commit that referenced this issue Apr 29, 2020
(GH-81) Fixed issue with deserialization of MaybeStruct none case.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Development

Successfully merging a pull request may close this issue.

2 participants