go-ini/ini

section panic

weidongbcn opened this issue · 0 comments

Describe the bug
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x1 pc=0x4c3bcf]

goroutine 1 [running]:
github.com/go-ini/ini.(*File).SectionsByName(0x0, 0x4f10d6, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/debian/go/pkg/mod/github.com/go-ini/ini@v1.57.0/file.go:147 +0x6f
github.com/go-ini/ini.(*File).GetSection(...)
/home/debian/go/pkg/mod/github.com/go-ini/ini@v1.57.0/file.go:134
github.com/go-ini/ini.(*File).Section(0x0, 0x4f10d6, 0x8, 0x406185)
/home/debian/go/pkg/mod/github.com/go-ini/ini@v1.57.0/file.go:166 +0x45

To Reproduce
A code snippet to reproduce the problem described above.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here, or any suggestion to fix the problem.