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();
|
int cellIndex = col.getCellIndex();
|
||||||
cols[i] = col.getName();
|
cols[i] = col.getName();
|
||||||
|
|
||||||
Cell cell = row.cells.get(cellIndex);
|
Object value = row.getCellValue(cellIndex);
|
||||||
if(cell != null){
|
if(value != null){
|
||||||
vals[i] = cell.value.toString();
|
vals[i] = value instanceof String ? (String) value : value.toString();
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user