Skip to content
Snippets Groups Projects
Commit 1ca022e3 authored by hjk's avatar hjk
Browse files

FakeVim: Check handler pointer before using it


Shouldn't happen in that case. But better safe than sorry.

Change-Id: I8461fec32c23e7efe6c949724cf522b58b703acc
Reviewed-by: default avatarLukas Holecek <hluk@email.cz>
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent ee6ecef5
No related branches found
No related tags found
No related merge requests found
...@@ -2123,6 +2123,7 @@ void FakeVimPluginPrivate::showExtraInformation(const QString &text) ...@@ -2123,6 +2123,7 @@ void FakeVimPluginPrivate::showExtraInformation(const QString &text)
IEditor *iedit = EditorManager::openEditorWithContents(Id(), &title, text.toUtf8()); IEditor *iedit = EditorManager::openEditorWithContents(Id(), &title, text.toUtf8());
EditorManager::activateEditor(iedit); EditorManager::activateEditor(iedit);
FakeVimHandler *handler = m_editorToHandler.value(iedit, 0); FakeVimHandler *handler = m_editorToHandler.value(iedit, 0);
QTC_ASSERT(handler, return);
handler->handleCommand(_("0")); handler->handleCommand(_("0"));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment