summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ThreadPool.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2016-09-15 09:15:36 +0200
committerBenoit Foucher <benoit@zeroc.com>2016-09-15 09:15:36 +0200
commit643cd9c6e8918955b9acac2a58ac6ef33916012a (patch)
treeb5d1520036831c5595d4209090ba04e2370511bc /cpp/src/Ice/ThreadPool.cpp
parentFixes to allow cross-compilation (diff)
downloadice-643cd9c6e8918955b9acac2a58ac6ef33916012a.tar.bz2
ice-643cd9c6e8918955b9acac2a58ac6ef33916012a.tar.xz
ice-643cd9c6e8918955b9acac2a58ac6ef33916012a.zip
Fixed ICE-7347 - NullHandleException in the thread pool
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r--cpp/src/Ice/ThreadPool.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp
index 7423a3b21f2..3769458371b 100644
--- a/cpp/src/Ice/ThreadPool.cpp
+++ b/cpp/src/Ice/ThreadPool.cpp
@@ -74,7 +74,10 @@ public:
//
// Break cyclic reference count.
//
- _handler->getNativeInfo()->setReadyCallback(0);
+ if(_handler->getNativeInfo())
+ {
+ _handler->getNativeInfo()->setReadyCallback(0);
+ }
}
private: