Commit 616c55a2 authored by BogDan Vatra's avatar BogDan Vatra Committed by Daniel Teske
Browse files

Fix crash.



Check if there is any qtVersion->qtAbis() before getting the first element.

Change-Id: Ia55985b513cc2473dd0cfbef45877185d65df6ef
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 6f5ce197
...@@ -241,7 +241,7 @@ bool AndroidSettingsWidget::checkNDK(const Utils::FileName &location) ...@@ -241,7 +241,7 @@ bool AndroidSettingsWidget::checkNDK(const Utils::FileName &location)
QSet<ProjectExplorer::Abi::Architecture> qtVersionsForArch; QSet<ProjectExplorer::Abi::Architecture> qtVersionsForArch;
foreach (QtSupport::BaseQtVersion *qtVersion, QtSupport::QtVersionManager::instance()->versions()) { foreach (QtSupport::BaseQtVersion *qtVersion, QtSupport::QtVersionManager::instance()->versions()) {
if (qtVersion->type() != QLatin1String(Constants::ANDROIDQT)) if (qtVersion->type() != QLatin1String(Constants::ANDROIDQT) || qtVersion->qtAbis().isEmpty())
continue; continue;
qtVersionsForArch.insert(qtVersion->qtAbis().first().architecture()); qtVersionsForArch.insert(qtVersion->qtAbis().first().architecture());
} }
......
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