mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 07:35:48 +03:00
[PR #429] [MERGED] Pagination nil pointer panic #520
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#520
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/429
Author: @cursor[bot]
Created: 2/5/2026
Status: ✅ Merged
Merged: 2/5/2026
Merged by: @rudrankriyam
Base:
cursor/issue-426-refactor-7e7f← Head:cursor/pagination-nil-pointer-panic-a6a7📝 Commits (1)
c2777bdFix typed nil pointer panic in pagination📊 Changes
2 files changed (+46 additions, -2 deletions)
View changed files
📝
internal/asc/client_pagination.go(+19 -2)📝
internal/asc/client_pagination_test.go(+27 -0)📄 Description
Fix panic when
PaginateAllreceives a typed nil pointer by gracefully handling it and returning an empty response.The previous reflection-based refactoring introduced a bug where passing a non-nil interface containing a nil pointer (a "typed nil") to
PaginateAllwould cause a panic. The fix ensures thatnewEmptyPaginatedResponseandaggregatePageDatacorrectly handle this edge case, preventing crashes and returning an empty, valid response.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.