Fix bugs in ExprEval (#6617)

This commit is contained in:
Roman Leventov 2018-11-15 00:20:52 +01:00 committed by Gian Merlino
parent 2ebdce20b1
commit 0b70c36eb0
1 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ public abstract class ExprEval<T>
return this;
case LONG:
if (value == null) {
return ExprEval.of(null);
return ExprEval.ofLong(null);
} else {
return ExprEval.of(asLong());
}
@ -239,7 +239,7 @@ public abstract class ExprEval<T>
switch (castTo) {
case DOUBLE:
if (value == null) {
return ExprEval.of(null);
return ExprEval.ofDouble(null);
} else {
return ExprEval.of(asDouble());
}