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:
parent
0eb3bc1276
commit
a353701633
1 changed files with 1 additions and 0 deletions
|
@ -3574,6 +3574,7 @@ public class CompleteParseASTFactory extends BaseASTFactory implements IASTFacto
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ISymbol symbol = getExpressionSymbol( scope, expression.getExpressionKind(), expression.getLHSExpression(), expression.getRHSExpression(), null, null );
|
ISymbol symbol = getExpressionSymbol( scope, expression.getExpressionKind(), expression.getLHSExpression(), expression.getRHSExpression(), null, null );
|
||||||
|
if( symbol == null) return null;
|
||||||
return symbol.getASTExtension().getPrimaryDeclaration();
|
return symbol.getASTExtension().getPrimaryDeclaration();
|
||||||
} catch (ASTSemanticException e) {
|
} catch (ASTSemanticException e) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue