hanzoai / gochimp3

🐒 Golang client for MailChimp API 3.0.

Home Page:https://github.com/zeekay/gochimp3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Panic recover during `GetActivity`

ArturMinnullin opened this issue · comments

Hey,

I'm getting the error when I try to fetch activities for the list:
activities, err := list.GetActivity(&gochimp3.BasicQueryParams{})

The log of error is the following:

runtime error: invalid memory address or nil pointer dereference
 stack trace 2985 bytes
 goroutine 70 [running]:
main.MW.func1.1.1.1(0xc4200aba48)

Perhaps it happens because the activity array for this list doesn't have any data.