Commit 274f1c0e authored by Tobias Hunger's avatar Tobias Hunger

Android: Fix possible crash

This can apparently get triggered with qbs projects.

Task-number: QTCREATORBUG-14493
Change-Id: Id645fbad1a0b9fdff1d1840f8ba5821b3be56b7d
Reviewed-by: default avatarDaniel Teske <daniel.teske@theqtcompany.com>
parent 6cd5df75
......@@ -122,7 +122,7 @@ QList<Core::Id> AndroidDeployConfigurationFactory::availableCreationIds(Target *
return ids;
QtSupport::BaseQtVersion *qt = QtSupport::QtKitInformation::qtVersion(parent->kit());
if (qt->type() != QLatin1String(Constants::ANDROIDQT))
if (!qt || qt->type() != QLatin1String(Constants::ANDROIDQT))
return ids;
ids << Core::Id(ANDROID_DEPLOYCONFIGURATION_ID);
return ids;
......
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