NOISSUE fix segfault when version list is null

This commit is contained in:
Petr Mrázek 2015-04-02 20:18:23 +02:00
parent d313e9ab09
commit 28a39ef7ac

View File

@ -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);
} }