Commit 62060ce7 authored by hjk's avatar hjk
Browse files

debugger: make requestMark() more robust for editors not representing files

parent 8d54298c
......@@ -1193,6 +1193,7 @@ void DebuggerEnginePrivate::doInterruptInferior()
void DebuggerEnginePrivate::doShutdownInferior()
{
QTC_ASSERT(state() == InferiorShutdownRequested, qDebug() << state());
m_engine->resetLocation();
m_targetState = DebuggerFinished;
m_engine->showMessage(_("CALL: SHUTDOWN INFERIOR"));
......
......@@ -1906,7 +1906,7 @@ void DebuggerPluginPrivate::toggleBreakpoint(const QString &fileName, int lineNu
void DebuggerPluginPrivate::requestMark(ITextEditor *editor, int lineNumber)
{
if (isDebuggable(editor))
if (isDebuggable(editor) && editor && editor->file())
toggleBreakpoint(editor->file()->fileName(), lineNumber);
}
......
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