Qnx: Fixing crash when launching BB10 application

m_futureInterface field might be 0 when reportProgress slot is called

Task-number: QTCREATORBUG-10038
Change-Id: I93931e78f3a5077bb347b184f5e61230a1955695
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Reviewed-by: David Kaspar <dkaspar@blackberry.com>
This commit is contained in:
David Kaspar
2013-08-26 14:32:36 +02:00
parent 525a9f6a03
commit 1a2baecf6a

View File

@@ -132,7 +132,8 @@ void BlackBerryAbstractDeployStep::reportProgress(int progress)
{
QTC_ASSERT(progress >= 0 && progress <= 100, return);
m_futureInterface->setProgressValue(100 * m_processCounter + progress);
if (m_futureInterface)
m_futureInterface->setProgressValue(100 * m_processCounter + progress);
}
void BlackBerryAbstractDeployStep::runCommands()