Commit 47be5db2 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

CollectionStatistics: fix out-of-range index access

parent de7eea95
......@@ -96,8 +96,7 @@ CollectionStatistics::CollectionStatistics(bool prefetch)
auto query = qb.query();
while (query.next()) {
const auto colId = query.value(0).toLongLong();
const auto isVirtual = query.value(1).toBool();
if (!isVirtual && !mCache.contains(colId)) {
if (!mCache.contains(colId)) {
mCache.insert(colId, { 0, 0, 0 });
}
}
......
Markdown is supported
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