src/ToCSV.java in poi2csv-0.0.3 vs src/ToCSV.java in poi2csv-0.0.4

- old
+ new

@@ -539,10 +539,15 @@ csvLine.add(""); } else { switch (cell.getCellType()) { case Cell.CELL_TYPE_FORMULA: - csvLine.add(this.formatter.formatCellValue(cell, this.evaluator)); + try { + csvLine.add(this.formatter.formatCellValue(cell, this.evaluator)); + } + catch (Exception e) { + csvLine.add(this.formatter.formatCellValue(cell)); + } break; case Cell.CELL_TYPE_ERROR: csvLine.add(""); break; default: