Commit 6b29b6ba authored by Eric Armbruster's avatar Eric Armbruster Committed by Christoph Cullmann
Browse files

Fix crash when there are no search results

Right-clicking when nothing has been searched yet or no results
were found currently results in a crash. This is fixed by checking
m_curResults against null.

(cherry picked from commit 75f7b1fa)
parent a48202a2
Pipeline #222121 passed with stage
in 9 minutes and 34 seconds
......@@ -2139,7 +2139,7 @@ void KatePluginSearchView::customResMenuRequested(const QPoint &pos)
QAction *exportMatches = new QAction(i18n("Export matches"), tree);
if (m_curResults->useRegExp) {
if (m_curResults && m_curResults->useRegExp) {
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