Check for nil response
@@ -309,6 +309,9 @@ func (c *pollingController) ListAllStatuses(ctx context.Context, fullName string
return allStatuses, err
}
allStatuses = append(allStatuses, statuses...)
+ if response == nil {
+ break
+ }
// Check for an invalid value for the next page
if response.Page.Next <= page {
break
