Fix crash during logout

This commit is contained in:
Tobias Fella
2025-04-18 22:56:57 +02:00
parent e465ef6d41
commit bb864cac5b

View File

@@ -397,7 +397,7 @@ QVariant RoomTreeModel::data(const QModelIndex &index, int role) const
QModelIndex RoomTreeModel::indexForRoom(NeoChatRoom *room) const
{
if (room == nullptr) {
if (room == nullptr || m_connection == nullptr) {
return {};
}