From db3585813845bdd17d9ee3c7d5a4828a82e03f4b Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Mon, 29 Sep 2014 11:17:22 +0200 Subject: Improved fix for ICE-5693 and update of request handler --- cpp/src/Ice/Proxy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/Ice/Proxy.cpp') diff --git a/cpp/src/Ice/Proxy.cpp b/cpp/src/Ice/Proxy.cpp index 2d7ef940fa7..f455f5e6361 100644 --- a/cpp/src/Ice/Proxy.cpp +++ b/cpp/src/Ice/Proxy.cpp @@ -1644,10 +1644,10 @@ void IceProxy::Ice::Object::__setRequestHandler(const ::IceInternal::RequestHandlerPtr& previous, const ::IceInternal::RequestHandlerPtr& handler) { - if(_reference->getCacheConnection()) + if(_reference->getCacheConnection() && previous) { IceUtil::Mutex::Lock sync(_mutex); - if(_requestHandler.get() != handler.get()) + if(_requestHandler && _requestHandler.get() != handler.get()) { // // Update the request handler only if "previous" is the same -- cgit v1.2.3