activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1478571 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/UUID.cpp
Date Thu, 02 May 2013 21:32:00 GMT
Author: tabish
Date: Thu May  2 21:31:52 2013
New Revision: 1478571

URL: http://svn.apache.org/r1478571
Log:
Fix issue found on windows

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/UUID.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/UUID.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/UUID.cpp?rev=1478571&r1=1478570&r2=1478571&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/UUID.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/util/UUID.cpp Thu May  2 21:31:52
2013
@@ -299,7 +299,11 @@ UUID UUID::randomUUID() {
 
 ////////////////////////////////////////////////////////////////////////////////
 UUID UUID::nameUUIDFromBytes(const std::vector<char>& name) {
-    return UUID::nameUUIDFromBytes(&name[0], (int)name.size());
+    if (!name.empty()) {
+        return UUID::nameUUIDFromBytes(&name[0], (int)name.size());
+    } else {
+        return UUID::nameUUIDFromBytes(NULL, 0);
+    }
 }
 
 ////////////////////////////////////////////////////////////////////////////////



Mime
View raw message