Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 33441 invoked from network); 18 Sep 2010 16:47:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Sep 2010 16:47:21 -0000 Received: (qmail 28346 invoked by uid 500); 18 Sep 2010 16:47:20 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 28309 invoked by uid 500); 18 Sep 2010 16:47:20 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 28300 invoked by uid 99); 18 Sep 2010 16:47:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Sep 2010 16:47:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Sep 2010 16:47:19 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8IGkxYL002360 for ; Sat, 18 Sep 2010 16:46:59 GMT Message-ID: <7337543.21221284828419739.JavaMail.jira@thor> Date: Sat, 18 Sep 2010 12:46:59 -0400 (EDT) From: "Bruce Snyder (JIRA)" To: dev@activemq.apache.org Subject: [jira] Updated: (AMQ-2631) activemq - protobuf does not handle nulls well. In-Reply-To: <48274515.2431267519784411.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/AMQ-2631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bruce Snyder updated AMQ-2631: ------------------------------ Fix Version/s: 5.5.0 (was: 5.4.1) > 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 > Fix For: 5.5.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. - You can reply to this email to add a comment to the issue online.