From 4f7025083420058e50051c86170e47c91d2af827 Mon Sep 17 00:00:00 2001 From: "Hiram R. Chirino" Date: Wed, 25 Oct 2006 15:46:07 +0000 Subject: [PATCH] fix npes during tests.. git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@467685 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/openwire/OpenWireFormat.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java b/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java index b27dac55de..4366668613 100755 --- a/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java +++ b/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java @@ -57,8 +57,8 @@ final public class OpenWireFormat implements WireFormat { private short nextMarshallCacheIndex=0; private short nextMarshallCacheEvictionIndex=0; private HashMap marshallCacheMap = new HashMap(); - private DataStructure marshallCache[]; - private DataStructure unmarshallCache[]; + private DataStructure marshallCache[] = new DataStructure[MARSHAL_CACHE_SIZE]; + private DataStructure unmarshallCache[] = new DataStructure[MARSHAL_CACHE_SIZE]; private WireFormatInfo preferedWireFormatInfo;