1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix NPE in lookupSymbolInContext()

This commit is contained in:
John Camelon 2004-06-21 17:09:49 +00:00
parent 0eb3bc1276
commit a353701633

View file

@ -3574,6 +3574,7 @@ public class CompleteParseASTFactory extends BaseASTFactory implements IASTFacto
{
try {
ISymbol symbol = getExpressionSymbol( scope, expression.getExpressionKind(), expression.getLHSExpression(), expression.getRHSExpression(), null, null );
if( symbol == null) return null;
return symbol.getASTExtension().getPrimaryDeclaration();
} catch (ASTSemanticException e) {
return null;