jimschubert / changelog

A changelog generator which uses GitHub's API for the details

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug] Panic when author is null

jimschubert opened this issue · comments

This appears to occur when the original author account no longer exists, and the API returns null.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x84fad66]

goroutine 12 [running]:
github.com/jimschubert/changelog/service.githubService.convertToChangeItem(0x980fd10, 0x98188a0, 0x986bfb0, 0x981e580, 0x9822cd0, 0x986bf88)
/go/src/app/service/github_service.go:108 +0x176
github.com/jimschubert/changelog/service.githubService.Process.func1(0x980fd10, 0x980fcf8, 0x980fd10, 0x98188a0, 0x981e580, 0x9822cd0, 0x998ea80, 0x998ea78, 0x9850300, 0x0, ...)
/go/src/app/service/github_service.go:80 +0x8c
created by github.com/jimschubert/changelog/service.githubService.Process
/go/src/app/service/github_service.go:77 +0x23a