[
https://issues.apache.org/jira/browse/AMQ-2631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary Tully updated AMQ-2631:
----------------------------
Fix Version/s: (was: 5.5.0)
5.6.0
> activemq - protobuf does not handle nulls well.
> ------------------------------------------------
>
> Key: AMQ-2631
> URL: https://issues.apache.org/jira/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
> Fix For: 5.6.0
>
> Attachments: testPatch.patch
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira