Commit 65bc23ba authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Core: Fix crash on reaper shutdown

Change-Id: I08dd990f851786f2af55076800d694855b859687
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent 28c70724
......@@ -69,7 +69,7 @@ bool ProcessReaper::isFinished() const
void ProcessReaper::nextIteration()
{
QProcess::ProcessState state = m_process->state();
QProcess::ProcessState state = m_process ? m_process->state() : QProcess::NotRunning;
if (state == QProcess::NotRunning || m_emergencyCounter > 5) {
delete m_process;
m_process = nullptr;
......
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