Guard against nil pointer dereference#8107
Merged
ycombinator merged 4 commits intoelastic:mainfrom May 8, 2025
Merged
Conversation
Contributor
|
This pull request does not have a backport label. Could you fix it @ycombinator? 🙏
|
Contributor
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
ebeahan
previously approved these changes
May 7, 2025
swiatekm
previously approved these changes
May 7, 2025
cmacknz
reviewed
May 7, 2025
|
Contributor
💚 Build Succeeded
cc @ycombinator |
cmacknz
approved these changes
May 8, 2025
Contributor
|
@Mergifyio backport 9.0 |
Contributor
✅ Backports have been createdDetails
|
mergify bot
pushed a commit
that referenced
this pull request
May 8, 2025
* Add nil guard * Return if nil * Use the assert.CollectT object (cherry picked from commit eb9d202)
mergify bot
pushed a commit
that referenced
this pull request
May 8, 2025
* Add nil guard * Return if nil * Use the assert.CollectT object (cherry picked from commit eb9d202) # Conflicts: # testing/integration/beat_receivers_test.go
ycombinator
added a commit
that referenced
this pull request
May 8, 2025
* Add nil guard * Return if nil * Use the assert.CollectT object (cherry picked from commit eb9d202) Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>
ycombinator
added a commit
that referenced
this pull request
May 8, 2025
* Add nil guard * Return if nil * Use the assert.CollectT object (cherry picked from commit eb9d202) # Conflicts: # testing/integration/beat_receivers_test.go Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>
v1v
added a commit
to v1v/elastic-agent
that referenced
this pull request
May 8, 2025
* upstream/main: Guard against `nil` pointer dereference (elastic#8107) Generate NOTICE.txt with only modules used by binaries (elastic#8053) Retry enrollment requests when an error is returned, add enrollment timeout (elastic#8056) Changelog for 8.17.6 version (elastic#8062) (elastic#8106) [main][Automation] Update versions (elastic#8098) Allow using beats receivers for self-monitoring (elastic#8031) Adding new configuration setting: `agent.upgrade.rollback.window` (elastic#8065) [Integration Testing] Allow tests to declare themselves as needing a FIPS environment (elastic#8083) fix(agentless): overcome SIGPIPE in agentless promotion pipeline (elastic#8094) ksm autosharing integration configuration update (elastic#8086)
Contributor
|
I don't think this was sufficient. I see a different error now. @swiatekm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





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