Fix crash logging out from an account with no contact address
This commit is contained in:
parent
4defd26bb6
commit
ac8e0f146c
1 changed files with 3 additions and 2 deletions
|
|
@ -124,8 +124,9 @@ void AccountModel::removeAccount() {
|
|||
auto params = mMonitor ? mMonitor->getParams() : nullptr;
|
||||
qDebug() << log()
|
||||
.arg("Removing account [%1]")
|
||||
.arg(params ? Utils::coreStringToAppString(params->getIdentityAddress()->asString()) : "Null");
|
||||
if (mMonitor) core->removeAccount(mMonitor);
|
||||
.arg(params && params->getIdentityAddress()
|
||||
? Utils::coreStringToAppString(params->getIdentityAddress()->asString())
|
||||
: "Null");
|
||||
}
|
||||
|
||||
std::shared_ptr<linphone::Account> AccountModel::getAccount() const {
|
||||
|
|
|
|||
Loading…
Reference in a new issue