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