Minor bug: don't try to bind null cell value.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@187 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-03-04 02:14:40 +00:00
parent 7eaf4b098c
commit 87956be756

View File

@ -28,9 +28,13 @@ public class ExpressionUtils {
bindings.remove("value"); bindings.remove("value");
} else { } else {
bindings.put("cell", cell); bindings.put("cell", cell);
if (cell.value == null) {
bindings.remove("value");
} else {
bindings.put("value", cell.value); bindings.put("value", cell.value);
} }
} }
}
static public boolean isError(Object o) { static public boolean isError(Object o) {
return o != null && o instanceof EvalError; return o != null && o instanceof EvalError;