Skip to content

fix(beacon): prevent nil pointer dereference when setting block index#567

Merged
barnabasbusa merged 1 commit intomasterfrom
bbusa/missing-body
Feb 9, 2026
Merged

fix(beacon): prevent nil pointer dereference when setting block index#567
barnabasbusa merged 1 commit intomasterfrom
bbusa/missing-body

Conversation

@barnabasbusa
Copy link
Copy Markdown
Collaborator

This change adds a check to ensure that the body parameter is not nil before attempting to access its methods (Graffiti()) within setBlockIndex. This prevents a panic if loadBlock returns nil.

This change adds a check to ensure that the `body` parameter is not nil before attempting to access its methods (`Graffiti()`) within `setBlockIndex`. This prevents a panic if `loadBlock` returns `nil`.
@barnabasbusa barnabasbusa requested a review from pk910 February 9, 2026 12:52
@barnabasbusa barnabasbusa merged commit 5bb9837 into master Feb 9, 2026
2 checks passed
@barnabasbusa barnabasbusa deleted the bbusa/missing-body branch February 9, 2026 13:46
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.

2 participants