Skip to content
Snippets Groups Projects
Commit e69626aa authored by Loïc Siret's avatar Loïc Siret Committed by Guillaume Roguez
Browse files

smartools: fix nullptr access


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

Change-Id: I0372099e4da315164cd0f617d6846d4dfac17f1e
Reviewed-by: default avatarGuillaume Roguez <guillaume.roguez@savoirfairelinux.com>
parent 15c12e62
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
return;
}
auto confID = call->getConfId();
if (confID != ""){
information_["type"]= "conference";
information_["callID"]= confID;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment