diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-10-14 13:35:25 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-10-14 13:35:25 +0200 |
commit | 7a2d4a779714bc1e5154f731fae99b45fc090efe (patch) | |
tree | 2797e9791f14c526d167455ff946348d830c3ba9 /src/plugins/cppeditor/cpphoverhandler.cpp | |
parent | 0bd314bc8faf933999cce25b3ec4f5dc9fd7952d (diff) | |
download | qt-creator-7a2d4a779714bc1e5154f731fae99b45fc090efe.tar.gz |
Fixed possible crash when building the helpId
Diffstat (limited to 'src/plugins/cppeditor/cpphoverhandler.cpp')
-rw-r--r-- | src/plugins/cppeditor/cpphoverhandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cpphoverhandler.cpp b/src/plugins/cppeditor/cpphoverhandler.cpp index 99e87288ea..508eec2854 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())) { |