Commit 758d1045 authored by Ognian Milanov's avatar Ognian Milanov Committed by Christoph Cullmann
Browse files

Fixed a null pointer dereference in gdb plugin

A simple fix for dereferencing null pointer in gdb plugin.
parent c277ed7d
Pipeline #236597 canceled with stage
in 43 seconds
......@@ -471,7 +471,9 @@ void KatePluginGDBView::enableDebugActions(bool enable)
m_inputArea->setFocus();
m_focusOnInput = false;
} else {
m_mainWin->activeView()->setFocus();
if (m_mainWin->activeView()) {
m_mainWin->activeView()->setFocus();
}
}
} else {
m_inputArea->setFocusPolicy(Qt::NoFocus);
......
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