summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--logic/Env.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/logic/Env.cpp b/logic/Env.cpp
index 7ca206f2..68e76e4b 100644
--- a/logic/Env.cpp
+++ b/logic/Env.cpp
@@ -110,6 +110,10 @@ public:
BaseVersionPtr Env::getVersion(QString component, QString version)
{
auto list = getVersionList(component);
+ if(!list)
+ {
+ return nullptr;
+ }
return list->findVersion(version);
}