summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/LocatorInfo.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2014-07-25 11:54:05 +0200
committerBenoit Foucher <benoit@zeroc.com>2014-07-25 11:54:05 +0200
commit78aa45dcf75316fc2db511938b7c8249511e54ca (patch)
treeb68cda42fe86a4b868b7e72de55aea4d00dba26b /cpp/src/Ice/LocatorInfo.cpp
parentBuild fixes for MinGW 4.7.2-32 (diff)
downloadice-78aa45dcf75316fc2db511938b7c8249511e54ca.tar.bz2
ice-78aa45dcf75316fc2db511938b7c8249511e54ca.tar.xz
ice-78aa45dcf75316fc2db511938b7c8249511e54ca.zip
Improved IceGrid discovery, it now works with icegrid registry slaves and nodes
Diffstat (limited to 'cpp/src/Ice/LocatorInfo.cpp')
-rw-r--r--cpp/src/Ice/LocatorInfo.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/Ice/LocatorInfo.cpp b/cpp/src/Ice/LocatorInfo.cpp
index dfdadb06c86..e668dc3a248 100644
--- a/cpp/src/Ice/LocatorInfo.cpp
+++ b/cpp/src/Ice/LocatorInfo.cpp
@@ -540,7 +540,11 @@ IceInternal::LocatorInfo::getLocatorRegistry()
// Do not make locator calls from within sync.
//
LocatorRegistryPrx locatorRegistry = _locator->getRegistry();
-
+ if(!locatorRegistry)
+ {
+ return 0;
+ }
+
{
IceUtil::Mutex::Lock sync(*this);