diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d21b44ff..4eca27f83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,9 +19,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Update SDK to 5.2.29 +## 5.0.13 - undefined + +### Fixed +- Crash on chat rooms with default account. + ## 5.0.12 - 2023-03-01 -## Fixed +### Fixed - Some case of unwanted settings folders creation. - Replace black thumbnails that contains transparency by white color. - Unusable Contact sheet. diff --git a/linphone-app/src/components/conferenceInfo/ConferenceInfoModel.cpp b/linphone-app/src/components/conferenceInfo/ConferenceInfoModel.cpp index 1e9f61142..31bd46a09 100644 --- a/linphone-app/src/components/conferenceInfo/ConferenceInfoModel.cpp +++ b/linphone-app/src/components/conferenceInfo/ConferenceInfoModel.cpp @@ -87,11 +87,14 @@ ConferenceInfoModel::ConferenceInfoModel (QObject * parent) : QObject(parent){ mConferenceInfo->setDateTime(0); mConferenceInfo->setDuration(0); mIsScheduled = false; - auto accountAddress = CoreManager::getInstance()->getCore()->getDefaultAccount()->getContactAddress(); - if(accountAddress){ - auto cleanedClonedAddress = accountAddress->clone(); - cleanedClonedAddress->clean(); - mConferenceInfo->setOrganizer(cleanedClonedAddress); + auto defaultAccount = CoreManager::getInstance()->getCore()->getDefaultAccount(); + if(defaultAccount){ + auto accountAddress = defaultAccount->getContactAddress(); + if(accountAddress){ + auto cleanedClonedAddress = accountAddress->clone(); + cleanedClonedAddress->clean(); + mConferenceInfo->setOrganizer(cleanedClonedAddress); + } } connect(this, &ConferenceInfoModel::conferenceInfoChanged, this, &ConferenceInfoModel::timeZoneModelChanged); connect(this, &ConferenceInfoModel::conferenceInfoChanged, this, &ConferenceInfoModel::dateTimeChanged); @@ -324,11 +327,14 @@ void ConferenceInfoModel::resetConferenceInfo() { mConferenceInfo->setDateTime(0); mConferenceInfo->setDuration(0); mIsScheduled = false; - auto accountAddress = CoreManager::getInstance()->getCore()->getDefaultAccount()->getContactAddress(); - if(accountAddress){ - auto cleanedClonedAddress = accountAddress->clone(); - cleanedClonedAddress->clean(); - mConferenceInfo->setOrganizer(cleanedClonedAddress); + auto defaultAccount = CoreManager::getInstance()->getCore()->getDefaultAccount(); + if(defaultAccount){ + auto accountAddress = defaultAccount->getContactAddress(); + if(accountAddress){ + auto cleanedClonedAddress = accountAddress->clone(); + cleanedClonedAddress->clean(); + mConferenceInfo->setOrganizer(cleanedClonedAddress); + } } }