Skip to content
New issue

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

执行 go run main.go 报错 #14

Closed
jiangtao6888 opened this issue Jul 29, 2019 · 1 comment
Closed

执行 go run main.go 报错 #14

jiangtao6888 opened this issue Jul 29, 2019 · 1 comment

Comments

@jiangtao6888
Copy link

2019/07/29 10:19:55 /Users/knight/Repository/go/pkg/mod/github.com/ikeikeikeike/go-sitemap-generator/v2@v2.0.2/stm/sitemap.go:14: Max processors 8
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x16c9bc6]

goroutine 62 [running]:
github.com/ikeikeikeike/go-sitemap-generator/v2/stm.(*Sitemap).XMLContent(...)
/Users/knight/Repository/go/pkg/mod/github.com/ikeikeikeike/go-sitemap-generator/v2@v2.0.2/stm/sitemap.go:103
github.com/mlogclub/mlog/services.(*articleService).GenerateSitemap(0x22eb0f8)
/Users/knight/Repository/go/src/mlog/services/article_service.go:294 +0x5c6
github.com/mlogclub/mlog/app.generateSitemapAndRss.func1()
/Users/knight/Repository/go/src/mlog/app/starting.go:20 +0x2d
created by github.com/mlogclub/mlog/app.generateSitemapAndRss
/Users/knight/Repository/go/src/mlog/app/starting.go:19 +0x35
exit status 2

@bbbbbbbbbbbbba
Copy link
Collaborator

已经修复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants