diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index b10cf3d2b2dcb9e49e303a7fff0f5a55f4941045..e11b14398a0fbcb14ceb9942557614583f8cddc5 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)