[infinispan-issues] [JBoss JIRA] (IPROTO-90) NPE when writing message having a null field of a boxed primitive type that is also marked required

Adrian Nistor (Jira) issues at jboss.org
Mon Mar 18 08:05:00 EDT 2019


     [ https://issues.jboss.org/browse/IPROTO-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Nistor updated IPROTO-90:
--------------------------------
    Fix Version/s: 4.3.0.Alpha1


> 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
>
>
> 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)


More information about the infinispan-issues mailing list