activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tarjei Huse (JIRA)" <>
Subject [jira] Created: (AMQ-2631) activemq - protobuf does not handle nulls well.
Date Tue, 02 Mar 2010 08:49:44 GMT
activemq - protobuf does not handle nulls well. 

                 Key: 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

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

        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.

View raw message