You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
running the code sample gives:
Warning: Required field not set while parsing. This is an error.
upon the 1st call with an empty buffer
bob = pb_read_Person();
The field is later set. Ideally, the warning shouldn't be there during the
initial empty construction of bob. Instead there should be a final check on the
constructed object that checks all required fields are set (could be
recursive). And then one can throw error instead of warning.
That should work right?
Original issue reported on code.google.com by [email protected] on 17 Jan 2013 at 5:55
The text was updated successfully, but these errors were encountered:
I agree that this warning is useless when you're creating a new message. I also
agree that an error should be thrown if a required field remains unset during
encoding. The two attached m-files can be dropped into
"protobuf-matlab/protobuflib/" to achieve the desired behavior.
Original issue reported on code.google.com by
[email protected]
on 17 Jan 2013 at 5:55The text was updated successfully, but these errors were encountered: