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
......@@ -2123,6 +2123,7 @@ void FakeVimPluginPrivate::showExtraInformation(const QString &text)
IEditor *iedit = EditorManager::openEditorWithContents(Id(), &title, text.toUtf8());
EditorManager::activateEditor(iedit);
FakeVimHandler *handler = m_editorToHandler.value(iedit, 0);
QTC_ASSERT(handler, return);
handler->handleCommand(_("0"));
}
......
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