NOISSUE fix segfault when version list is null
This commit is contained in:
parent
d313e9ab09
commit
28a39ef7ac
@ -110,6 +110,10 @@ public:
|
|||||||
BaseVersionPtr Env::getVersion(QString component, QString version)
|
BaseVersionPtr Env::getVersion(QString component, QString version)
|
||||||
{
|
{
|
||||||
auto list = getVersionList(component);
|
auto list = getVersionList(component);
|
||||||
|
if(!list)
|
||||||
|
{
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
return list->findVersion(version);
|
return list->findVersion(version);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user