From ac4a0ca747c24c4e7d76388d9bb39e3a0de4298a Mon Sep 17 00:00:00 2001 From: Tom Morris Date: Wed, 5 Oct 2011 23:41:52 +0000 Subject: [PATCH] Store blank cells as nulls if that's what the user request git-svn-id: http://google-refine.googlecode.com/svn/trunk@2272 7d457c2a-affb-35e4-300a-418c747d4874 --- .../com/google/refine/importers/TabularImportingParserBase.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/src/com/google/refine/importers/TabularImportingParserBase.java b/main/src/com/google/refine/importers/TabularImportingParserBase.java index 0ae49b732..416e8b813 100644 --- a/main/src/com/google/refine/importers/TabularImportingParserBase.java +++ b/main/src/com/google/refine/importers/TabularImportingParserBase.java @@ -182,6 +182,8 @@ abstract public class TabularImportingParserBase extends ImportingParserBase { rowHasData = true; } else if (!storeBlankCellsAsNulls) { row.setCell(column.getCellIndex(), new Cell("", null)); + } else { + row.setCell(column.getCellIndex(), null); } }