From 87956be7568eb812dfbad1f6bd1b565b4efe7e2b Mon Sep 17 00:00:00 2001 From: David Huynh Date: Thu, 4 Mar 2010 02:14:40 +0000 Subject: [PATCH] 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 --- .../java/com/metaweb/gridworks/expr/ExpressionUtils.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/metaweb/gridworks/expr/ExpressionUtils.java b/src/main/java/com/metaweb/gridworks/expr/ExpressionUtils.java index f5b8574ee..f5928f751 100644 --- a/src/main/java/com/metaweb/gridworks/expr/ExpressionUtils.java +++ b/src/main/java/com/metaweb/gridworks/expr/ExpressionUtils.java @@ -28,7 +28,11 @@ public class ExpressionUtils { bindings.remove("value"); } else { bindings.put("cell", cell); - bindings.put("value", cell.value); + if (cell.value == null) { + bindings.remove("value"); + } else { + bindings.put("value", cell.value); + } } }