Skip to content

[9.0] (backport #8107) Guard against nil pointer dereference#8117

Merged
ycombinator merged 1 commit into9.0from
mergify/bp/9.0/pr-8107
May 8, 2025
Merged

[9.0] (backport #8107) Guard against nil pointer dereference#8117
ycombinator merged 1 commit into9.0from
mergify/bp/9.0/pr-8107

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented May 8, 2025

This PR adds a guard against a variable being nil before we try to dereference it.


This is an automatic backport of pull request #8107 done by Mergify.

* Add nil guard

* Return if nil

* Use the assert.CollectT object

(cherry picked from commit eb9d202)
@mergify mergify bot added the backport label May 8, 2025
@mergify mergify bot requested a review from a team as a code owner May 8, 2025 00:05
@mergify mergify bot requested review from swiatekm and removed request for a team May 8, 2025 00:05
@mergify mergify bot added the backport label May 8, 2025
@mergify mergify bot requested a review from pchila May 8, 2025 00:05
@github-actions github-actions bot added Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team skip-changelog labels May 8, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@ycombinator ycombinator enabled auto-merge (squash) May 8, 2025 00:14
@elastic-sonarqube
Copy link
Copy Markdown

@ycombinator ycombinator merged commit f3c758a into 9.0 May 8, 2025
15 checks passed
@ycombinator ycombinator deleted the mergify/bp/9.0/pr-8107 branch May 8, 2025 01:44
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

cc @ycombinator

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants