On Thursday, October 29, 2009 at 4:47:51 AM UTC-5, micha wrote:
>
> 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 unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to