diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index 779c60772f5c5a20dcfb0f0d156a8c1dcbfbbbf8..319feea7d0e44b35e6a992daef7651a58ae6be5f 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()