Commit d8aa51e5 authored by Milian Wolff's avatar Milian Wolff
Browse files

Don't crash when ctest job exists on shutdown

BUG: 309715
parent 6a8fac4b
......@@ -71,6 +71,11 @@ void CTestFindJob::findTestCases()
void CTestFindJob::updateReady(const KDevelop::IndexedString& document, const KDevelop::ReferencedTopDUContext& context)
{
// try not to crash, see: https://bugs.kde.org/show_bug.cgi?id=309715
if (KDevelop::ICore::self()->shuttingDown()) {
return;
}
kDebug() << m_pendingFiles << document.str();
m_suite->loadDeclarations(document, context);
m_pendingFiles.removeAll(document.str());
......
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