qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1156560 - /qpid/trunk/qpid/cpp/src/qpid/sys/CopyOnWriteArray.h
Date Thu, 11 Aug 2011 09:49:38 GMT
Author: gsim
Date: Thu Aug 11 09:49:38 2011
New Revision: 1156560

URL: http://svn.apache.org/viewvc?rev=1156560&view=rev
Log:
QPID-3403: Enhancement as suggested by Jason Dillaman

Modified:
    qpid/trunk/qpid/cpp/src/qpid/sys/CopyOnWriteArray.h

Modified: qpid/trunk/qpid/cpp/src/qpid/sys/CopyOnWriteArray.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/sys/CopyOnWriteArray.h?rev=1156560&r1=1156559&r2=1156560&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/sys/CopyOnWriteArray.h (original)
+++ qpid/trunk/qpid/cpp/src/qpid/sys/CopyOnWriteArray.h Thu Aug 11 09:49:38 2011
@@ -46,7 +46,7 @@ public:
     bool empty()
     {
         Mutex::ScopedLock l(lock);
-        return array->empty();
+        return array ? array->empty() : true;
     }
 
     void add(T& t)



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message