diff --git a/cpp/src/Ice/OutgoingResponse.cpp b/cpp/src/Ice/OutgoingResponse.cpp index dda2b1c8234..67ea69194e8 100644 --- a/cpp/src/Ice/OutgoingResponse.cpp +++ b/cpp/src/Ice/OutgoingResponse.cpp @@ -55,7 +55,7 @@ namespace OutgoingResponse makeOutgoingResponseCore(std::exception_ptr exc, const Current& current) { assert(exc); - OutputStream ostr{current.adapter->getCommunicator(), Ice::currentProtocolEncoding}; + OutputStream ostr{Ice::currentProtocolEncoding}; if (current.requestId != 0) {