Skip to content
This repository was archived by the owner on Jan 24, 2026. It is now read-only.

Fix panic due to not handling an edge case#54

Merged
fiatjaf merged 3 commits into
fiatjaf:masterfrom
coracle-social:fix-out-of-range-error
Jun 10, 2025
Merged

Fix panic due to not handling an edge case#54
fiatjaf merged 3 commits into
fiatjaf:masterfrom
coracle-social:fix-out-of-range-error

Conversation

@staab

@staab staab commented Jun 10, 2025

Copy link
Copy Markdown

Fixes runtime error: index out of range [0] with length 0

@staab

staab commented Jun 10, 2025

Copy link
Copy Markdown
Author

Just pushed another change that fixes the nil check when using reflection. Because the field value was always a typed pointer to nil, it was never itself nil, resulting in all methods being listed as supported.

@fiatjaf
fiatjaf merged commit 44e4b86 into fiatjaf:master Jun 10, 2025
1 check passed
@fiatjaf

fiatjaf commented Jun 10, 2025

Copy link
Copy Markdown
Owner

I have no idea of what is going on here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants