Author: tabish
Date: Wed Oct 24 11:45:38 2007
New Revision: 587962
URL: http://svn.apache.org/viewvc?rev=587962&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQCPP-149
Fixed null entry in primitive map in incoming messages from crashing the client.
Modified:
activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/marshal/PrimitiveMapMarshaller.cpp
Modified:
activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/marshal/PrimitiveMapMarshaller.cpp
URL:
http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/marshal/PrimitiveMapMarshaller.cpp?rev=587962&r1=587961&r2=587962&view=diff
==============================================================================
---
activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/marshal/PrimitiveMapMarshaller.cpp
(original)
+++
activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/marshal/PrimitiveMapMarshaller.cpp
Wed Oct 24 11:45:38 2007
@@ -217,6 +217,9 @@
switch( type )
{
+ case PrimitiveMap::NULL_TYPE:
+ map.setString( key, "" );
+ break;
case PrimitiveMap::BYTE_TYPE:
map.setByte( key, dataIn.readByte() );
break;