Commit e05869c3 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

fix crash on addJump

parent eb46ac67
......@@ -1190,7 +1190,7 @@ void KateMainWindow::addJump(const QUrl &url, KTextEditor::Cursor c)
}
// if same line, remove last entry
if (m_locations.back().url == url && m_locations.back().cursor.line() == c.line()) {
if (!m_locations.isEmpty() && m_locations.back().url == url && m_locations.back().cursor.line() == c.line()) {
m_locations.pop_back();
}
......
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