From fe932995e1767239561e4efee75e841f6fb2315b Mon Sep 17 00:00:00 2001
From: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com>
Date: Sat, 17 Oct 2015 19:55:21 -0400
Subject: [PATCH] manager: fix nullptr access in Manager::sendCallTextMessage

Call::getCallId() method is accessed in a nullptr pointer context.
This patch fix it by using the user given callId.

Issue: #82045
Change-Id: I8700aeaa173706909cf303be6d1efff5a4d1fc44
---
 src/manager.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/manager.cpp b/src/manager.cpp
index c9ce4c0fd2..3937c06186 100644
--- a/src/manager.cpp
+++ b/src/manager.cpp
@@ -1662,7 +1662,7 @@ Manager::sendCallTextMessage(const std::string& callID,
     } else {
         auto call = getCallFromCallID(callID);
         if (not call) {
-            RING_ERR("Failed to send message to %s: inexistant call ID", call->getCallId().c_str());
+            RING_ERR("Failed to send message to %s: inexistant call ID", callID.c_str());
             return;
         }
 
-- 
GitLab