forked from qt-creator/qt-creator
Fixed two crashes with C++ engine handling
These checks are necessary cause of a recent change in the C++ engine. Reviewed-by: Roberto Raggi
This commit is contained in:
@@ -256,7 +256,7 @@ void CppHoverHandler::updateHelpIdAndTooltip(TextEditor::ITextEditor *editor, in
|
||||
const QList<TypeOfExpression::Result> types =
|
||||
typeOfExpression(expression, doc, lastSymbol);
|
||||
|
||||
if (!types.isEmpty()) {
|
||||
if (!types.isEmpty() && types.first().first) {
|
||||
FullySpecifiedType firstType = types.first().first;
|
||||
Symbol *symbol = types.first().second;
|
||||
FullySpecifiedType docType = firstType;
|
||||
|
||||
Reference in New Issue
Block a user