Simplexcel icon indicating copy to clipboard operation
Simplexcel copied to clipboard

Null Ref if a Cell is null

Open mstum opened this issue 6 years ago • 0 comments

var ws = new Worksheet("Testing");

ws.Cells[0,0] = "Foo";
ws.Cells[1,1] = null;

var wb = new Workbook();
wb.Add(ws);
wb.Save(@"test.xlsx");

NullReferenceException:

at Simplexcel.XlsxInternal.XlsxWriter.XlsxWriterInternal.HandleLargeNumbers(Worksheet sheet)
at Simplexcel.XlsxInternal.XlsxWriter.XlsxWriterInternal.Save(Workbook workbook, Stream outputStream, Boolean compress)
at Simplexcel.XlsxInternal.XlsxWriter.Save(Workbook workbook, Stream outputStream, Boolean compress)
at Simplexcel.Workbook.Save(Stream stream, Boolean compress)
at Simplexcel.Workbook.Save(String filename, Boolean compress)

mstum avatar Feb 02 '19 01:02 mstum