Commit 75f7b1fa 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.
parent 45771cbf
Pipeline #222120 passed with stage
in 12 minutes and 25 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