Commit 186976ca authored by legoc's avatar legoc
Browse files

(split) Added test on value of output stream socket pointer in APIs

parent 5fc163c0
...@@ -466,8 +466,10 @@ void Instance::setErrorMessage(const std::string& message) { ...@@ -466,8 +466,10 @@ void Instance::setErrorMessage(const std::string& message) {
} }
void Instance::setOutputStreamSocket(std::unique_ptr<OutputStreamSocket>& socket) { void Instance::setOutputStreamSocket(std::unique_ptr<OutputStreamSocket>& socket) {
m_outputStreamSocket = std::move(socket); if (socket) {
m_outputStreamSocket->setApplicationId(m_id); m_outputStreamSocket = std::move(socket);
m_outputStreamSocket->setApplicationId(m_id);
}
} }
void Instance::setPastStates(State pastStates) { void Instance::setPastStates(State pastStates) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment