Commit e69626aa authored by Loïc Siret's avatar Loïc Siret Committed by Guillaume Roguez

smartools: fix nullptr access

This patch handles a nullptr returned by Manager::getCallFromCallID.

Change-Id: I0372099e4da315164cd0f617d6846d4dfac17f1e
Reviewed-by: Guillaume Roguez's avatarGuillaume Roguez <>
parent 15c12e62
......@@ -126,7 +126,11 @@ Smartools::setRemoteVideoCodec(const std::string& remoteVideoCodec, const std::s
std::lock_guard<std::mutex> lk(mutexInfo_);
information_["remote video codec"]= remoteVideoCodec;
auto confID = Manager::instance().getCallFromCallID(callID)->getConfId();
auto call = Manager::instance().getCallFromCallID(callID);
if (!call) {
auto confID = call->getConfId();
if (confID != ""){
information_["type"]= "conference";
information_["callID"]= confID;
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