diff --git a/src/plugins/debugger/debuggerengine.cpp b/src/plugins/debugger/debuggerengine.cpp index 05a659b5246b67f9c29099a887ca8d4cfbe4d6e6..8120ed024b36d975d15ab3b96b363deaf9ba5a4a 100644 --- a/src/plugins/debugger/debuggerengine.cpp +++ b/src/plugins/debugger/debuggerengine.cpp @@ -1176,7 +1176,8 @@ void DebuggerEngine::notifyInferiorPid(qint64 pid) return; d->m_inferiorPid = pid; if (pid) { - d->m_runControl->setApplicationProcessHandle(ProcessHandle(pid)); + if (d->m_runControl) + d->m_runControl->setApplicationProcessHandle(ProcessHandle(pid)); showMessage(tr("Taking notice of pid %1").arg(pid)); if (d->m_startParameters.startMode == StartInternal || d->m_startParameters.startMode == StartExternal