From 79ada524fa8a1adc885158c2860c93617e992a1f Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Tue, 20 Feb 2018 11:28:32 -0800 Subject: [PATCH] getRequester() may return NULL --- src/remoteClient/clientContextImpl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/remoteClient/clientContextImpl.cpp b/src/remoteClient/clientContextImpl.cpp index 3800503..18ce6b1 100644 --- a/src/remoteClient/clientContextImpl.cpp +++ b/src/remoteClient/clientContextImpl.cpp @@ -3828,7 +3828,9 @@ public: for(size_t i=0, N=ops.size(); igetRequester()->channelDisconnect(connectionState==Channel::DESTROYED);) + ChannelBaseRequester::shared_pointer req(R->getRequester()); + if(!req) continue; + EXCEPTION_GUARD(req->channelDisconnect(connectionState==Channel::DESTROYED);) } } }