diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index 779c60772f5..319feea7d0e 100644 --- a/src/plugins/coreplugin/editormanager/editormanager.cpp +++ b/src/plugins/coreplugin/editormanager/editormanager.cpp @@ -2247,7 +2247,8 @@ void EditorManager::removeAllSplits() d->m_splitter->unsplitAll(); if (!editor) editor = pickUnusedEditor(); - activateEditor(editor); + if (editor) + activateEditor(editor); } void EditorManager::gotoOtherSplit()