Commit 362aef67 authored by hjk's avatar hjk Committed by hjk
Browse files

debugger: don't crash when telling a dead runcontrol about a pid

Change-Id: I1cf33f3587de2e8e35a74a15aa797539f2f58014
Reviewed-on: http://codereview.qt.nokia.com/318

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent b63c01b1
......@@ -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
......
Supports Markdown
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