]
Adrian Nistor updated IPROTO-90:
--------------------------------
Fix Version/s: 4.2.3.Final
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
Assignee: Adrian Nistor
Priority: Major
Fix For: 4.3.0.Alpha1, 4.2.3.Final
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}