diff --git a/src/plugins/cppeditor/cppeditordocument.cpp b/src/plugins/cppeditor/cppeditordocument.cpp index 3d33e1f3f9c..77bffc7338c 100644 --- a/src/plugins/cppeditor/cppeditordocument.cpp +++ b/src/plugins/cppeditor/cppeditordocument.cpp @@ -169,7 +169,8 @@ void CppEditorDocument::applyFontSettings() } } TextDocument::applyFontSettings(); // rehighlights and updates additional formats - m_processor->semanticRehighlight(); + if (m_processor) + m_processor->semanticRehighlight(); } void CppEditorDocument::invalidateFormatterCache()