1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00
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:
axel 2013-05-03 22:41:58 +02:00 committed by Sergey Prigogin
parent 64121887a9
commit 1bb098436f

View file

@ -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) {