From ab10ac13cb54ce7385d5a1c6f9b99deb9b3064a9 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Tue, 24 Dec 2013 23:28:45 +0200 Subject: [PATCH] EditorManager: Add a soft assertion for editor existence Change-Id: Ieb1e13a25dd2ac4fbe2c1dba0adbbe93dcc6b4e7 Reviewed-by: hjk Reviewed-by: Eike Ziller --- src/plugins/coreplugin/editormanager/editormanager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index b10cf3d2b2..e11b14398a 100644 --- a/src/plugins/coreplugin/editormanager/editormanager.cpp +++ b/src/plugins/coreplugin/editormanager/editormanager.cpp @@ -1261,6 +1261,7 @@ Core::IEditor *EditorManager::placeEditor(Core::Internal::EditorView *view, Core void EditorManager::activateEditor(Core::IEditor *editor, OpenEditorFlags flags) { + QTC_ASSERT(editor, return); EditorView *view = viewForEditor(editor); // an IEditor doesn't have to belong to a view, it might be kept in storage by the editor model if (!view) -- GitLab