Skip to content

systems: synthesize error when getRecord returns nil record#1968

Open
SAY-5 wants to merge 1 commit intohenrygd:mainfrom
SAY-5:fix/get-record-nil-record-1950
Open

systems: synthesize error when getRecord returns nil record#1968
SAY-5 wants to merge 1 commit intohenrygd:mainfrom
SAY-5:fix/get-record-nil-record-1950

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 2, 2026

Closes #1950. FindRecordById can return (nil, nil) when the record is gone; the caller used to receive (nil, nil), then dereferenced the nil record downstream and panicked.

Closes henrygd#1950. Caller proceeded with a nil record and panicked downstream.
@SAY-5 SAY-5 requested a review from henrygd as a code owner May 2, 2026 09:56
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.

[Bug]: Panic / Nil pointer dereference in internal/hub/systems/system.go during tests

1 participant