summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/IceGrid/ReplicaSessionManager.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/ReplicaSessionManager.h b/cpp/src/IceGrid/ReplicaSessionManager.h
index 3e69bf9ab9d..d0cee5d10b4 100644
--- a/cpp/src/IceGrid/ReplicaSessionManager.h
+++ b/cpp/src/IceGrid/ReplicaSessionManager.h
@@ -77,7 +77,7 @@ public:
void destroy();
void registerAllWellKnownObjects();
- ReplicaSessionPrx getSession() const { return _thread->getSession(); }
+ ReplicaSessionPrx getSession() const { return _thread ? _thread->getSession() : ReplicaSessionPrx(); }
IceGrid::InternalRegistryPrx findInternalRegistryForReplica(const Ice::Identity&);