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:
parent
b47ada4dca
commit
18b720b913
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user