Skip to content
Snippets Groups Projects
Commit eeb42c0f authored by Guillaume Roguez's avatar Guillaume Roguez Committed by Nicolas Jager
Browse files

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 <nicolas.jager@savoirfairelinux.com>
parent 18ebcb3a
Branches
No related tags found
No related merge requests found
......@@ -143,7 +143,7 @@ void IMConversationManagerPrivate::newMessage(const QString& callId, const QStri
Q_UNUSED(from)
auto call = CallModel::instance().getCall(callId);
if (!call and !call->peerContactMethod()) {
if (!call or !call->peerContactMethod()) {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment