mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
Fix crash in contact creation with no SIP address
This commit is contained in:
parent
d74ccc32bd
commit
5c9ab21356
1 changed files with 2 additions and 1 deletions
|
|
@ -385,7 +385,8 @@ VariantObject *Utils::findFriendByAddress(const QString &address) {
|
|||
});
|
||||
// Rebuild friend if needed
|
||||
auto updateValue = [data, address](const std::shared_ptr<linphone::Friend> &f) -> void {
|
||||
if (f->getAddress()->weakEqual(ToolModel::interpretUrl(address))) data->invokeRequestValue();
|
||||
if (f && f->getAddress() && f->getAddress()->weakEqual(ToolModel::interpretUrl(address)))
|
||||
data->invokeRequestValue();
|
||||
};
|
||||
data->makeUpdateCond(CoreModel::getInstance().get(), &CoreModel::friendCreated, updateValue); // New Friend
|
||||
data->makeUpdateCond(CoreModel::getInstance().get(), &CoreModel::friendRemoved, updateValue); // New Friend
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue