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;
|
auto params = mMonitor ? mMonitor->getParams() : nullptr;
|
||||||
qDebug() << log()
|
qDebug() << log()
|
||||||
.arg("Removing account [%1]")
|
.arg("Removing account [%1]")
|
||||||
.arg(params ? Utils::coreStringToAppString(params->getIdentityAddress()->asString()) : "Null");
|
.arg(params && params->getIdentityAddress()
|
||||||
if (mMonitor) core->removeAccount(mMonitor);
|
? Utils::coreStringToAppString(params->getIdentityAddress()->asString())
|
||||||
|
: "Null");
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<linphone::Account> AccountModel::getAccount() const {
|
std::shared_ptr<linphone::Account> AccountModel::getAccount() const {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue