Commit 924c8bf8 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

ToolChains: Fix theoretically possible null pointer access

This can not be triggered right now, but somebody might run into this

Change-Id: Ibc635e7dca1db7ab77376b5373db67dcdd2bb46e
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <>
parent 6cb20536
......@@ -831,10 +831,10 @@ QList<ToolChain *> GccToolChainFactory::autoDetectToolchains(const QString &comp
foreach (const Abi &abi, abiList) {
QScopedPointer<GccToolChain> tc(createToolChain(true));
tc->setMacroCache(QStringList(), macros);
if (tc.isNull())
return result;
tc->setMacroCache(QStringList(), macros);
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