mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Bug #404716
Avoid NPE Change-Id: I3eb03962a338fa628778c6d84ea1dd2ee615e3f4 Reviewed-on: https://git.eclipse.org/r/12510 Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com> IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com> Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
This commit is contained in:
parent
64121887a9
commit
1bb098436f
1 changed files with 2 additions and 2 deletions
|
@ -140,10 +140,10 @@ public class EvalBinary extends CPPDependentEvaluation {
|
|||
}
|
||||
|
||||
IValue v1 = fArg1.getValue(point);
|
||||
if (v1 == Value.UNKNOWN)
|
||||
if (v1 == null || v1 == Value.UNKNOWN)
|
||||
return Value.UNKNOWN;
|
||||
IValue v2 = fArg2.getValue(point);
|
||||
if (v2 == Value.UNKNOWN)
|
||||
if (v2 == null || v2 == Value.UNKNOWN)
|
||||
return Value.UNKNOWN;
|
||||
|
||||
switch (fOperator) {
|
||||
|
|
Loading…
Add table
Reference in a new issue