diff --git a/src/models/imagepacksmodel.cpp b/src/models/imagepacksmodel.cpp index 5cd664153..38ec1188d 100644 --- a/src/models/imagepacksmodel.cpp +++ b/src/models/imagepacksmodel.cpp @@ -102,6 +102,9 @@ void ImagePacksModel::reloadImages() } auto packs = rooms[roomId].toObject(); const auto &stickerRoom = m_room->connection()->room(roomId); + if (!stickerRoom) { + continue; + } for (const auto &packKey : packs.keys()) { if (const auto &pack = stickerRoom->currentState().get(packKey)) { const auto packContent = pack->content();