We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description When trying to get a cell formula, if the cell has a nil formula, you can get a nil pointer dereference error.
In GetCellFormula() (cell.go line 243+)
for k := range xlsx.SheetData.Row { if xlsx.SheetData.Row[k].R == row { for i := range xlsx.SheetData.Row[k].C { if axis == xlsx.SheetData.Row[k].C[i].R { if xlsx.SheetData.Row[k].C[i].F.T == STCellFormulaTypeShared { return getSharedForumula(xlsx, xlsx.SheetData.Row[k].C[i].F.Si) } if xlsx.SheetData.Row[k].C[i].F != nil { return xlsx.SheetData.Row[k].C[i].F.Content } } } } }
->
for k := range xlsx.SheetData.Row { if xlsx.SheetData.Row[k].R == row { for i := range xlsx.SheetData.Row[k].C { if axis == xlsx.SheetData.Row[k].C[i].R { if xlsx.SheetData.Row[k].C[i].F != nil { if xlsx.SheetData.Row[k].C[i].F.T == STCellFormulaTypeShared { return getSharedForumula(xlsx, xlsx.SheetData.Row[k].C[i].F.Si) } return xlsx.SheetData.Row[k].C[i].F.Content } } } } }
Steps to reproduce the issue:
Describe the results you received:
panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x1175ce8]
Describe the results you expected: Empty string Output of go version:
go version
go version go1.11.2 darwin/amd64
Excelize version or commit ID:
github.com/360EntSecGroup-Skylar/excelize v1.4.0
Environment details (OS, Microsoft Excel™ version, physical, etc.): macOS Mojave (Version 10.14) Terminal
The text was updated successfully, but these errors were encountered:
fix issue qax-os#290
ef334ee
Merge pull request #291 from peiqi111/master
507fc53
resolve #289, #290
75f7612
Merge pull request qax-os#291 from peiqi111/master
a7c4feb
resolve qax-os#289, qax-os#290
No branches or pull requests
Description
When trying to get a cell formula, if the cell has a nil formula, you can get a nil pointer dereference error.
In GetCellFormula() (cell.go line 243+)
->
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Empty string
Output of
go version
:Excelize version or commit ID:
Environment details (OS, Microsoft Excel™ version, physical, etc.):
macOS Mojave (Version 10.14) Terminal
The text was updated successfully, but these errors were encountered: