Commit eeb42c0f authored by Guillaume Roguez's avatar Guillaume Roguez Committed by Nicolas Jager

fix NPA in IMConversationManagerPrivate::newMessage()

NPA causing crash when IMConversationManagerPrivate::newMessage()
is called with a non existing callId.

Change-Id: I5c1fd7e8e56b7bd3b2feb72281fddaf90442c649
Reviewed-by: default avatarNicolas Jäger <>
parent 18ebcb3a
......@@ -143,7 +143,7 @@ void IMConversationManagerPrivate::newMessage(const QString& callId, const QStri
auto call = CallModel::instance().getCall(callId);
if (!call and !call->peerContactMethod()) {
if (!call or !call->peerContactMethod()) {
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