diff --git a/src/plugins/cppeditor/cpphoverhandler.cpp b/src/plugins/cppeditor/cpphoverhandler.cpp index 99e87288eaf7c9ddb9aaa1c0cb6ce853e02a2446..508eec2854cc65fad7f809535775e08f3f2e3cd1 100644 --- a/src/plugins/cppeditor/cpphoverhandler.cpp +++ b/src/plugins/cppeditor/cpphoverhandler.cpp @@ -357,7 +357,7 @@ void CppHoverHandler::updateHelpIdAndTooltip(TextEditor::ITextEditor *editor, in overview.setShowReturnTypes(true); overview.setShowFullyQualifiedNamed(true); - if (symbol == resolvedSymbol && symbol->isClass()) { + if (symbol && symbol == resolvedSymbol && symbol->isClass()) { m_toolTip = m_helpId; } else if (lookupSymbol && (lookupSymbol->isDeclaration() || lookupSymbol->isArgument())) {