From f3a3bf78c05a639afb84190b6283977d11ee7461 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen <erik.verbruggen@nokia.com> Date: Wed, 22 Feb 2012 15:05:45 +0100 Subject: [PATCH] C++: Fixed crash. Change-Id: Idec56cfced6e6eb2e0a78c4f242e7c81fec08692 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com> --- src/plugins/cpptools/symbolfinder.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/cpptools/symbolfinder.cpp b/src/plugins/cpptools/symbolfinder.cpp index 33329d1046c..9d63361bbf1 100644 --- a/src/plugins/cpptools/symbolfinder.cpp +++ b/src/plugins/cpptools/symbolfinder.cpp @@ -217,6 +217,9 @@ void SymbolFinder::findMatchingDeclaration(const LookupContext &context, QList<Declaration *> *argumentCountMatch, QList<Declaration *> *nameMatch) { + if (!functionType) + return; + Scope *enclosingScope = functionType->enclosingScope(); while (! (enclosingScope->isNamespace() || enclosingScope->isClass())) enclosingScope = enclosingScope->enclosingScope(); -- GitLab