mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Fix crash from loading invalid entries from cache
This commit is contained in:
@@ -251,6 +251,8 @@ ACLRegistry::load()
|
|||||||
continue;
|
continue;
|
||||||
tDebug() << Q_FUNC_INFO << "loading entry";
|
tDebug() << Q_FUNC_INFO << "loading entry";
|
||||||
ACLRegistry::User entryUser = entry.value< ACLRegistry::User >();
|
ACLRegistry::User entryUser = entry.value< ACLRegistry::User >();
|
||||||
|
if ( entryUser.knownAccountIds.empty() || entryUser.knownDbids.empty() )
|
||||||
|
continue;
|
||||||
m_cache.append( entryUser );
|
m_cache.append( entryUser );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user