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

This commit is contained in:
hjk
2010-07-20 18:14:41 +02:00
parent 8d54298c8e
commit 62060ce79c
2 changed files with 2 additions and 1 deletions

View File

@@ -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);
}