fix crash when error on account
This commit is contained in:
parent
61d63e5b82
commit
b9d0c99276
1 changed files with 1 additions and 1 deletions
|
|
@ -192,7 +192,7 @@ bool ToolModel::createCall(const QString &sipAddress,
|
|||
std::shared_ptr<linphone::Account> ToolModel::findAccount(const std::shared_ptr<const linphone::Address> &address) {
|
||||
std::shared_ptr<linphone::Account> account;
|
||||
for (auto item : CoreModel::getInstance()->getCore()->getAccountList()) {
|
||||
if (item->getContactAddress()->weakEqual(address)) {
|
||||
if (item->getContactAddress() && item->getContactAddress()->weakEqual(address)) {
|
||||
account = item;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue