[
https://issues.apache.org/jira/browse/AMQ-2631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Timothy Bish closed AMQ-2631.
-----------------------------
Resolution: Won't Fix
Best to move to something like HawtBuf:
https://github.com/chirino/hawtbuf
> 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.x
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira