Hi,

I have a message with a optionl field.

*  optional string param_country = 6;

I would like to avoid the to check each attribute if its null or not,
before setting it to the message.

In the net i found some code fragment of protobuf, that looked to me
that setting this field to null

*  .setParamCountry(someNullReference)

makes the Builder to call clearParamCountry().




But I get a NullPoiterException ....

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to