Commit 9f1e7205 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Ensure we had a valid class symbol.

parent a2cd5db6
......@@ -415,8 +415,8 @@ void LookupContext::expandClass(Scope *scope,
}
for (int j = 0; j < baseClassCandidates.size(); ++j) {
Class *baseClassSymbol = baseClassCandidates.at(j)->asClass();
expand(baseClassSymbol->members(), visibleScopes, expandedScopes);
if (Class *baseClassSymbol = baseClassCandidates.at(j)->asClass())
expand(baseClassSymbol->members(), visibleScopes, expandedScopes);
}
}
}
......
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