Commit f3a3bf78 authored by Erik Verbruggen's avatar Erik Verbruggen

C++: Fixed crash.

Change-Id: Idec56cfced6e6eb2e0a78c4f242e7c81fec08692
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent efc428d3
...@@ -217,6 +217,9 @@ void SymbolFinder::findMatchingDeclaration(const LookupContext &context, ...@@ -217,6 +217,9 @@ void SymbolFinder::findMatchingDeclaration(const LookupContext &context,
QList<Declaration *> *argumentCountMatch, QList<Declaration *> *argumentCountMatch,
QList<Declaration *> *nameMatch) QList<Declaration *> *nameMatch)
{ {
if (!functionType)
return;
Scope *enclosingScope = functionType->enclosingScope(); Scope *enclosingScope = functionType->enclosingScope();
while (! (enclosingScope->isNamespace() || enclosingScope->isClass())) while (! (enclosingScope->isNamespace() || enclosingScope->isClass()))
enclosingScope = enclosingScope->enclosingScope(); enclosingScope = enclosingScope->enclosingScope();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment