diff --git a/workbook.js b/workbook.js index 8ac283a..af5d1e8 100644 --- a/workbook.js +++ b/workbook.js @@ -126,7 +126,7 @@ if (range.e.c < C) range.e.c = C; var cell = (typeof data[R][C] == 'object' ? data[R][C] : {v: data[R][C] }); - if (cell.v == null) continue; + if (cell == null || cell.v == null) continue; var cell_ref = encode_cell({c: C, r: R}); if (typeof cell.v === 'number') cell.t = 'n';