Fixed possible crash when building the helpId

This commit is contained in:
Roberto Raggi
2009-10-14 13:35:25 +02:00
parent 0bd314bc8f
commit 7a2d4a7797

View File

@@ -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())) {