Commit 236340c4 authored by Laurent Montel's avatar Laurent Montel
Browse files

Don't try to load cache from empty collection id

parent eed933cd
Pipeline #215677 passed with stage
in 10 minutes and 55 seconds
......@@ -71,6 +71,11 @@ void ThreadingCache::load(const QString &id, const Aggregation *aggregation)
mGrouping = aggregation->grouping();
mEnabled = true;
if (id.isEmpty()) {
qCDebug(MESSAGELIST_LOG) << "Invalid collection: id is empty";
const QString cacheFileName =
QStandardPaths::locate(QStandardPaths::CacheLocation, QStringLiteral("messagelist/threading/%1").arg(id), QStandardPaths::LocateFile);
if (cacheFileName.isEmpty()) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment