You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2010/03/10 17:28:01 UTC

svn commit: r921435 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/utils/OpenwireStringSupport.cpp

Author: tabish
Date: Wed Mar 10 16:28:00 2010
New Revision: 921435

URL: http://svn.apache.org/viewvc?rev=921435&view=rev
Log:
Fix for: http://issues.apache.org/activemq/browse/AMQCPP-291

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/utils/OpenwireStringSupport.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/utils/OpenwireStringSupport.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/utils/OpenwireStringSupport.cpp?rev=921435&r1=921434&r2=921435&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/utils/OpenwireStringSupport.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/wireformat/openwire/utils/OpenwireStringSupport.cpp Wed Mar 10 16:28:00 2010
@@ -125,7 +125,7 @@ void OpenwireStringSupport::writeString(
 
     try {
 
-        if( str != NULL ) {
+        if( str != NULL && str->length() != 0 ) {
 
             int utfLength = 0;
             std::size_t length = str->length();