Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 85178 invoked from network); 12 Aug 2010 20:41:05 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Aug 2010 20:41:05 -0000 Received: (qmail 6513 invoked by uid 500); 12 Aug 2010 20:41:05 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 6446 invoked by uid 500); 12 Aug 2010 20:41:05 -0000 Mailing-List: contact commits-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 commits@activemq.apache.org Received: (qmail 6439 invoked by uid 99); 12 Aug 2010 20:41:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 20:41:05 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Aug 2010 20:41:02 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5EA3C2388A60; Thu, 12 Aug 2010 20:39:45 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r984954 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/util/PrimitiveValueConverter.cpp Date: Thu, 12 Aug 2010 20:39:45 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100812203945.5EA3C2388A60@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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: