You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2006/10/25 17:46:08 UTC
svn commit: r467685 -
/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java
Author: chirino
Date: Wed Oct 25 08:46:07 2006
New Revision: 467685
URL: http://svn.apache.org/viewvc?view=rev&rev=467685
Log:
fix npes during tests..
Modified:
incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java
Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java?view=diff&rev=467685&r1=467684&r2=467685
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java (original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/openwire/OpenWireFormat.java Wed Oct 25 08:46:07 2006
@@ -57,8 +57,8 @@
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;