Hi all, I'm using v3.15.2 C# libraries and trying to implement a nullable
int field. I am using the google.protobuf.Int32Value wrapper type however
whenever I set the field value to 0 I get an InvalidProtocolBufferException
on the receiving side when calling IMessage::MergeFrom(CodedInputStream
input) to deserialize the received message. Below is my pretty simple proto
definition
message EchoTest {
string message = 1;
google.protobuf.Int32Value number = 2;
}
Note that this exception is *only thrown* when setting 'number' to 0, not
setting 'number' at all or setting it to a non-zero value works fine, any
ideas what may be wrong?
Thanks!
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/protobuf/bca2c212-e7e0-45a0-8345-5a53ee9fc9b8n%40googlegroups.com.