ProjectExplorer: Fixed missing check for futureinterface nullness

Change-Id: I56808b84964218038ac9709583f07c212391f601
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Filippo Cucchetto
2016-12-03 12:40:36 +01:00
committed by Tobias Hunger
parent c9f7aef71d
commit 1e70a156f9

View File

@@ -290,7 +290,8 @@ QList<FileNode *> FileNode::scanForFiles(const Utils::FileName &directory,
QFutureInterface<QList<FileNode*>> *future)
{
QSet<QString> visited;
future->setProgressRange(0, 1000000);
if (future)
future->setProgressRange(0, 1000000);
return scanForFilesRecursively(directory, factory, visited, future, 0.0, 1000000.0);
}