Skip to content

fix(commands): handle nil list responses safely#59

Merged
matoous merged 1 commit intomainfrom
md/list-nil-safety
Mar 27, 2026
Merged

fix(commands): handle nil list responses safely#59
matoous merged 1 commit intomainfrom
md/list-nil-safety

Conversation

@matoous
Copy link
Copy Markdown
Contributor

@matoous matoous commented Mar 27, 2026

Add a shared helper for pointer-backed slice responses and use it in the remaining list commands that still dereferenced API results directly.

This keeps empty or partial SDK responses from turning into nil-pointer panics and aligns them with the already-defensive transactions command.

Add a shared helper for pointer-backed slice responses and use it in the remaining list commands that still dereferenced API results directly.

This keeps empty or partial SDK responses from turning into nil-pointer panics and aligns them with the already-defensive transactions command.
@matoous matoous merged commit 902f838 into main Mar 27, 2026
6 checks passed
@matoous matoous deleted the md/list-nil-safety branch March 27, 2026 21:20
@sumup-bot sumup-bot bot mentioned this pull request Mar 27, 2026
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

Successfully merging this pull request may close these issues.

1 participant