From 7ea8f41efa35bcb7a6bcef1719835b2142166f27 Mon Sep 17 00:00:00 2001 From: Liu Ming Date: Mon, 12 Jun 2017 10:36:14 +0800 Subject: [PATCH] fix issue #20 --- worksheet.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worksheet.go b/worksheet.go index 5a5717c..9bf065c 100644 --- a/worksheet.go +++ b/worksheet.go @@ -27,7 +27,9 @@ type WorkSheet struct { func (w *WorkSheet) Row(i int) *Row { row := w.rows[uint16(i)] - row.wb = w.wb + if row != nil { + row.wb = w.wb + } return row }