mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 22:22:11 +02:00
Bug 441394 - Fix an NPE in EvalFunctionSet.isConstantExpression()
Change-Id: I1a4d887d064d8467e2e5e9371ab4ad0a93532089 Signed-off-by: Nathan Ridge <zeratul976@hotmail.com> Reviewed-on: https://git.eclipse.org/r/31247 Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com> Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
This commit is contained in:
parent
b65c120429
commit
8e80f515fa
1 changed files with 2 additions and 0 deletions
|
@ -134,6 +134,8 @@ public class EvalFunctionSet extends CPPDependentEvaluation {
|
|||
|
||||
@Override
|
||||
public boolean isConstantExpression(IASTNode point) {
|
||||
if (fFunctionSet == null)
|
||||
return false;
|
||||
for (ICPPFunction f : fFunctionSet.getBindings()) {
|
||||
if (!f.isConstexpr()) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue