Commit 4a976e6b authored by Kai Koehne's avatar Kai Koehne Committed by hjk

DebuggingHelper: Check for empty list of qt apis

Change-Id: I86b0ead03821c97731bcd268613938c4a5373615
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent c54444dc
......@@ -909,10 +909,12 @@ Utils::Environment BaseQtVersion::qmlToolsEnvironment() const
addToEnvironment(environment);
// add preferred tool chain, as that is how the tools are built, compare QtVersion::buildDebuggingHelperLibrary
QList<ProjectExplorer::ToolChain *> alltc =
ProjectExplorer::ToolChainManager::instance()->findToolChains(qtAbis().at(0));
if (!alltc.isEmpty())
alltc.first()->addToEnvironment(environment);
if (!qtAbis().isEmpty()) {
QList<ProjectExplorer::ToolChain *> alltc =
ProjectExplorer::ToolChainManager::instance()->findToolChains(qtAbis().at(0));
if (!alltc.isEmpty())
alltc.first()->addToEnvironment(environment);
}
return environment;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment