Skip to content

Sonar: fix nil pointer dereference when op.Cid is nil#1259

Open
heathdutton wants to merge 1 commit intobluesky-social:mainfrom
heathdutton:fix/857-sonar-nil-pointer-dereference
Open

Sonar: fix nil pointer dereference when op.Cid is nil#1259
heathdutton wants to merge 1 commit intobluesky-social:mainfrom
heathdutton:fix/857-sonar-nil-pointer-dereference

Conversation

@heathdutton
Copy link
Contributor

Adds a nil check for op.Cid before dereferencing it in HandleRepoCommit. This prevents panics when processing malformed events where the CID is missing for create/update operations.

Closes #857

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.

Sonar is crashing due to an invalid memory address or nil pointer dereference

1 participant