activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r984954 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/PrimitiveValueConverter.cpp
Date Thu, 12 Aug 2010 20:39:45 GMT
Author: tabish
Date: Thu Aug 12 20:39:45 2010
New Revision: 984954

URL: http://svn.apache.org/viewvc?rev=984954&view=rev
Log:
Support receipt of null encoded string types.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/PrimitiveValueConverter.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/PrimitiveValueConverter.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/PrimitiveValueConverter.cpp?rev=984954&r1=984953&r2=984954&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/PrimitiveValueConverter.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/PrimitiveValueConverter.cpp
Thu Aug 12 20:39:45 2010
@@ -208,6 +208,8 @@ template<>
 std::string PrimitiveValueConverter::convert( const PrimitiveValueNode& value ) const
{
 
     switch( value.getType() ) {
+        case PrimitiveValueNode::NULL_TYPE:
+            return "";
         case PrimitiveValueNode::BOOLEAN_TYPE:
             return decaf::lang::Boolean::toString( value.getBool() );
         case PrimitiveValueNode::BYTE_TYPE:



Mime
View raw message