Verified Commit 3bc2bbb7 authored by Vladislav Glinsky's avatar Vladislav Glinsky
Browse files

Fix possible nullptr dereference

parent 3e3034f2
......@@ -433,7 +433,9 @@ void KgpgEditor::slotFindPrev()
long newopt = oldopt ^ KFind::FindBackwards;
m_find->setOptions(newopt);
slotFindText();
m_find->setOptions(oldopt);
if (m_find) {
m_find->setOptions(oldopt);
}
}
void KgpgEditor::slotFindText()
......
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