From 3d30239a1c466d8a3480ee27dbfeaea8fb0dbd08 Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Thu, 25 Mar 2010 14:59:16 +0100 Subject: [PATCH] debugger: fix soft assertion when "operate by instruction" was toggle without a valid stack trace. --- src/plugins/debugger/debuggermanager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/debugger/debuggermanager.cpp b/src/plugins/debugger/debuggermanager.cpp index 238641a4db7..104d380a5d9 100644 --- a/src/plugins/debugger/debuggermanager.cpp +++ b/src/plugins/debugger/debuggermanager.cpp @@ -1473,6 +1473,8 @@ void DebuggerManager::fileOpen(const QString &fileName) void DebuggerManager::operateByInstructionTriggered() { + if (!d->m_engine) + return; QTC_ASSERT(d->m_stackHandler, return); StackFrame frame = d->m_stackHandler->currentFrame(); gotoLocation(frame, true); -- GitLab