summaryrefslogtreecommitdiff
path: root/stream.go
diff options
context:
space:
mode:
authorThomas Charbonnel <thomascharbonnel@users.noreply.github.com>2022-08-04 16:50:33 +0800
committerGitHub <noreply@github.com>2022-08-04 16:50:33 +0800
commit4a029f7e3602ac48b6fbf410b86adac2af64983a (patch)
tree2b67583f2de49b8a17c6a418d69c97aff3425424 /stream.go
parent504d469d3da34602a9a88bd76669ce44fdbc67cf (diff)
This closes #1299 skip write nil values in SetRow (#1301)
Co-authored-by: Thomas Charbonnel <github@charbonnel.email>
Diffstat (limited to 'stream.go')
-rw-r--r--stream.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/stream.go b/stream.go
index 1a1af24..52e65a4 100644
--- a/stream.go
+++ b/stream.go
@@ -327,6 +327,9 @@ func (sw *StreamWriter) SetRow(axis string, values []interface{}, opts ...RowOpt
}
fmt.Fprintf(&sw.rawData, `<row r="%d"%s>`, row, attrs)
for i, val := range values {
+ if val == nil {
+ continue
+ }
axis, err := CoordinatesToCellName(col+i, row)
if err != nil {
return err