mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Fix crash on new participants when account have no contact address.
This commit is contained in:
parent
bbae9ecb4c
commit
34a73deca5
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ shared_ptr<const linphone::Address> AccountSettingsModel::getUsedSipAddress () c
|
|||
shared_ptr<linphone::Core> core = CoreManager::getInstance()->getCore();
|
||||
list<shared_ptr<linphone::Account>> accounts = CoreManager::getInstance()->getAccountList();
|
||||
for(auto account : accounts){
|
||||
if(account->getContactAddress()->weakEqual(address))
|
||||
if(account && account->getContactAddress() && account->getContactAddress()->weakEqual(address))
|
||||
return account;
|
||||
}
|
||||
return nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue