I know its an old thread but i use protobuf3 with Java and it has the same
NPE behavior with .set(null-reference). Is their any chance to change this?
an option to generating java classes would be nice. It is absolutly
annoying to null-check on every .set method. This will lead to more errors
in code and expand it inadequate due to chained-setters are not possible. :(
Am Mittwoch, 29. Mai 2013 23:50:59 UTC+2 schrieb prot...@googlecode.com:
> Comment #6 on issue 491 by xiaof...@google.com: Optional field throws
> NullPointerException when not set values.
> We don't have the intention to change to the current behavior. Passing
> is likely to be a programming error. Allowing it might do more harm than
> You received this message because this project is configured to send all
> issue notifications to this address.
> You may adjust your notification preferences at:
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 post to this group, send email to email@example.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.