activemq - protobuf does not handle nulls well. ------------------------------------------------ Key: AMQ-2631 URL: https://issues.apache.org/activemq/browse/AMQ-2631 Project: ActiveMQ Issue Type: Bug Affects Versions: 5.3.0 Environment: Java 1.6, Activemq - protobug v 1.0 Reporter: Tarjei Huse When assertInitialized does not check if a property is set to null, this then gives an NPE later. The attached patch is the same as the following test: package org.apache.activemq.protobuf; import junit.framework.TestCase; import org.apache.activemq.protobuf.DeferredUnmarshal.Baz; /** * * @author tarjei */ public class NullNotAllowedTest extends TestCase{ public void testNull() { Baz foo = new Baz(); foo.setField1(null); byte[] b = foo.toUnframedByteArray(); } } It demonstrates the error. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.