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

Throw on null for string/bytes single fields #660

Merged

Conversation

jskeet
Copy link
Contributor

@jskeet jskeet commented Jul 30, 2015

Turns out we didn't have a test for previous behaviour, worryingly...

…o use it from the generated code soon.

Additionally, change it to return the value passed, and make it generic with a class constraint.
A separate method doesn't have the class constraint, for more unusual scenarios.
@jtattermusch
Copy link
Contributor

LGTM, merging.

jtattermusch added a commit that referenced this pull request Jul 30, 2015
Throw on null for string/bytes single fields
@jtattermusch jtattermusch merged commit bde01d5 into protocolbuffers:csharp-experimental Jul 30, 2015
@jskeet jskeet deleted the throw-on-null branch August 3, 2015 09:39
adellahlou pushed a commit to adellahlou/protobuf that referenced this pull request Apr 20, 2023
Changes callback on failed response decode in rpc service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants