ClangRefactoring: Test for non existing client

This can be happen as we shutdown the process.

Change-Id: I69f30ed65ef4456abe6d59b4ea188a67c482efe0
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2019-07-10 14:33:44 +02:00
parent 2eb4050acb
commit 10f3621cf1

View File

@@ -142,7 +142,8 @@ void RefactoringServer::setGathererProcessingSlotCount(uint count)
void RefactoringServer::setProgress(int progress, int total)
{
client()->progress({ProgressType::Indexing, progress, total});
if (client())
client()->progress({ProgressType::Indexing, progress, total});
}
void RefactoringServer::gatherSourceRangesForQueryMessages(