From 7a2d4a779714bc1e5154f731fae99b45fc090efe Mon Sep 17 00:00:00 2001
From: Roberto Raggi <roberto.raggi@nokia.com>
Date: Wed, 14 Oct 2009 13:35:25 +0200
Subject: [PATCH] Fixed possible crash when building the helpId

---
 src/plugins/cppeditor/cpphoverhandler.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/cppeditor/cpphoverhandler.cpp b/src/plugins/cppeditor/cpphoverhandler.cpp
index 99e87288eaf..508eec2854c 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())) {
-- 
GitLab