Uploaded image for project: 'ProtoStream'
  1. ProtoStream
  2. IPROTO-90

NPE when writing message having a null field of a boxed primitive type that is also marked required

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.2.3.Final, 4.3.0.Alpha1
    • None
    • None

    Description

      This happens with annotation based marshallers.

      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)
      

      Attachments

        Activity

          People

            anistor Adrian Nistor (Inactive)
            anistor Adrian Nistor (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: