From 0ce0a0a8d3ad41a81299f8a36702a4f64c8dbec9 Mon Sep 17 00:00:00 2001 From: Tom Morris Date: Wed, 5 Oct 2011 23:33:17 +0000 Subject: [PATCH] Add toString support for null cells to help with debugging git-svn-id: http://google-refine.googlecode.com/svn/trunk@2271 7d457c2a-affb-35e4-300a-418c747d4874 --- main/src/com/google/refine/model/Row.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/com/google/refine/model/Row.java b/main/src/com/google/refine/model/Row.java index 1188c24f8..3ecc4a244 100644 --- a/main/src/com/google/refine/model/Row.java +++ b/main/src/com/google/refine/model/Row.java @@ -239,7 +239,7 @@ public class Row implements HasFields, Jsonizable { public String toString() { StringBuffer result = new StringBuffer(); for (Cell cell : cells) { - result.append(cell.toString()); + result.append(cell == null ? "null" : cell.toString()); result.append(","); } return result.toString();