On Thu, Dec 10, 2015 at 3:41 AM, Yuriy Pigovsky <[email protected]> wrote:

> I have a UUID message defined as
>
>
>     message PUUID {        required sint64 least_significant_bits = 1;        
>  required sint64 most_significant_bits = 2;     }
>
>
> Sometimes, very rarely, on some Android devices
> UninitializedMessageException is thrown while executing:
>
>         UUID uuid = UUID.randomUUID();
>
>     PUUID.newBuilder().
>         setLeastSignificantBits(uuid.getLeastSignificantBits()).
>         setMostSignificantBits(uuid.getMostSignificantBits()).
>         build();
>
> That exception is thrown when required fields are not set. I don't think
it can happen to the above code snippet though. Have you tried to reproduce
the problem with a simple Java class?


>
> Would you please answer why?
>
>
>
> --
> 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 post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to