mirror of
https://github.com/KDE/kasts.git
synced 2025-01-30 17:15:03 +01:00
Fix crash when viewing models in GammaRay
In DataManger::getFeed, it doesn't check if the index is less than 0.
This commit is contained in:
parent
8d3cafbb04
commit
93308f91e0
@ -133,7 +133,7 @@ DataManager::DataManager()
|
|||||||
|
|
||||||
Feed *DataManager::getFeed(const int index) const
|
Feed *DataManager::getFeed(const int index) const
|
||||||
{
|
{
|
||||||
if (index < m_feedmap.size()) {
|
if (index >= 0 && index < m_feedmap.size()) {
|
||||||
return getFeed(m_feedmap[index]);
|
return getFeed(m_feedmap[index]);
|
||||||
}
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user