From 18b720b913eb8913c4a2ed3f45e4630eac16839a Mon Sep 17 00:00:00 2001 From: David Huynh Date: Thu, 1 Jul 2010 02:32:03 +0000 Subject: [PATCH] Fixed CSV and TSV export bug. git-svn-id: http://google-refine.googlecode.com/svn/trunk@1059 7d457c2a-affb-35e4-300a-418c747d4874 --- main/src/com/metaweb/gridworks/exporters/CsvExporter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/src/com/metaweb/gridworks/exporters/CsvExporter.java b/main/src/com/metaweb/gridworks/exporters/CsvExporter.java index c2d212266..794bb61c5 100644 --- a/main/src/com/metaweb/gridworks/exporters/CsvExporter.java +++ b/main/src/com/metaweb/gridworks/exporters/CsvExporter.java @@ -66,9 +66,9 @@ public class CsvExporter implements Exporter{ int cellIndex = col.getCellIndex(); cols[i] = col.getName(); - Cell cell = row.cells.get(cellIndex); - if(cell != null){ - vals[i] = cell.value.toString(); + Object value = row.getCellValue(cellIndex); + if(value != null){ + vals[i] = value instanceof String ? (String) value : value.toString(); } i++; }