From 669c432ca15fb6f9dd33fd3907671141a45c0561 Mon Sep 17 00:00:00 2001 From: Baris Mar Aziz Date: Thu, 23 Feb 2023 23:18:10 +0700 Subject: [PATCH] This fixes #756, made stream writer skip set cell value when got nil (#1481) --- stream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream.go b/stream.go index bafd7591..7cab7305 100644 --- a/stream.go +++ b/stream.go @@ -536,7 +536,7 @@ func (sw *StreamWriter) setCellValFunc(c *xlsxC, val interface{}) error { case bool: c.T, c.V = setCellBool(val) case nil: - c.setCellValue("") + return err case []RichTextRun: c.T, c.IS = "inlineStr", &xlsxSI{} c.IS.R, err = setRichText(val)