1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

Fix crash from loading invalid entries from cache

This commit is contained in:
Jeff Mitchell
2012-06-15 15:01:30 -04:00
parent 285498d638
commit 10bb33590b

View File

@@ -251,6 +251,8 @@ ACLRegistry::load()
continue;
tDebug() << Q_FUNC_INFO << "loading entry";
ACLRegistry::User entryUser = entry.value< ACLRegistry::User >();
if ( entryUser.knownAccountIds.empty() || entryUser.knownDbids.empty() )
continue;
m_cache.append( entryUser );
}
}