Adrian Nistor created IPROTO-90:
-----------------------------------
Summary: NPE when writing message having a null field of a boxed primitive
type that is also marked required
Key: IPROTO-90
URL:
https://issues.jboss.org/browse/IPROTO-90
Project: Infinispan ProtoStream
Issue Type: Bug
Reporter: Adrian Nistor
This happens with annotation based marshallers
{code}
java.lang.NullPointerException
at
org.infinispan.protostream.annotations.impl.testdomain.Simple$___ProtostreamGeneratedMarshaller28.writeTo(Simple$___ProtostreamGeneratedMarshaller28.java)
at
org.infinispan.protostream.impl.RawProtobufMarshallerDelegate.marshall(RawProtobufMarshallerDelegate.java:32)
at org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:247)
at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:186)
at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:181)
at
org.infinispan.protostream.annotations.impl.ProtoSchemaBuilderTest.testGeneration(ProtoSchemaBuilderTest.java:202)
{code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)