mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
NOISSUE fix segfault when version list is null
This commit is contained in:
parent
d313e9ab09
commit
28a39ef7ac
1 changed files with 4 additions and 0 deletions
|
|
@ -110,6 +110,10 @@ public:
|
|||
BaseVersionPtr Env::getVersion(QString component, QString version)
|
||||
{
|
||||
auto list = getVersionList(component);
|
||||
if(!list)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
return list->findVersion(version);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue