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 }