scraperwiki / xlsx

Create Excel files in Go
MIT License
2 stars 2 forks source link

Memory error writing dimension tag #18

Open frabcus opened 9 years ago

frabcus commented 9 years ago

We got this error a lot:

runtime error: invalid memory address or nil pointer dereference

This stack trace:

fmt.Fprintf(0x0, 0x0, 0xa20ab0, 0x26, 0x7f044cc6cf10, 0x2, 0x2, 0x0, 0x0, 0x0)
        /usr/local/go/src/pkg/fmt/print.go:189 +0xaa
github.com/scraperwiki/xlsx.(*SheetWriter).Close(0xc2087045a0, 0x0, 0x0)
        /var/lib/pdftables/live/go/src/github.com/scraperwiki/xlsx/xlsx.go:457 +0x1e6

This line of code: https://github.com/scraperwiki/xlsx/blob/f985bfb64efb70aeed126a8ee0e700f80740e20f/xlsx.go#L457

frabcus commented 9 years ago

Note that this pull request would remove the line of code anyway: https://github.com/scraperwiki/xlsx/pull/17/files

Still, would like to know what is wrong!

frabcus commented 9 years ago

@psmithuk have you ever seen this one?