You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: repository_resource.go defers resp.Body.Close() before nil check — panics on network/request failures #2068
In pkg/github/repository_resource.go (lines 193-199), defer resp.Body.Close() is registered before the error check on the response. When the underlying HTTP call fails and returns (nil, err), the deferred function panics with a nil pointer dereference.
Activity
SamMorrowDrums commentedon Feb 25, 2026
I had looked into fixing this but it slipped through cracks and didn't get merged, and it needs updating now: #1506
Just needs to be updated and should be good.
Cc @omgitsads
omgitsads commentedon Feb 25, 2026
Updated #1506 and merged, should be resolved by that. Thanks for the report!