mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-18 22:45:25 +02:00
misc: avoid weird crash
Change-Id: I6e42a4f494b42330bafcfa4c9616ab78818ddf00
This commit is contained in:
parent
9f42301b5c
commit
4e088783a4
1 changed files with 4 additions and 0 deletions
|
@ -655,6 +655,10 @@ ConversationModel::getFilteredConversations(const profile::Type& profileType,
|
|||
OptRef<conversation::Info>
|
||||
ConversationModel::getConversationForUid(const QString& uid) const
|
||||
{
|
||||
if (!pimpl_) {
|
||||
qWarning() << "Invalid pimpl_";
|
||||
return std::nullopt;
|
||||
}
|
||||
try {
|
||||
return std::make_optional(pimpl_->getConversationForUid(uid, true));
|
||||
} catch (const std::out_of_range&) {
|
||||
|
|
Loading…
Add table
Reference in a new issue