Fixed CSV and TSV export bug.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@1059 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-07-01 02:32:03 +00:00
parent b47ada4dca
commit 18b720b913

View File

@ -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++;
}