Skip to content

fix(inputs.ecs): Check for nil pointer before use #15456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

powersj
Copy link
Contributor

@powersj powersj commented Jun 4, 2024

Summary

Avoid a panic when trying to use a nil pointer.

Checklist

  • No AI generated code was used in this PR

Related issues

fix: #15455

@telegraf-tiger telegraf-tiger bot added fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Jun 4, 2024
@powersj powersj self-assigned this Jun 4, 2024
@powersj powersj added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Jun 5, 2024
@powersj powersj assigned mstrandboge and srebhan and unassigned powersj Jun 5, 2024
@mstrandboge mstrandboge removed their assignment Jun 5, 2024
Copy link
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine with me, but let's wait for the user to check for metrics...

@srebhan srebhan assigned powersj and unassigned srebhan Jun 5, 2024
@powersj powersj merged commit c32f7ef into influxdata:master Jun 6, 2024
27 checks passed
@powersj powersj deleted the fix/15455 branch June 6, 2024 17:45
@github-actions github-actions bot added this to the v1.31.0 milestone Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr to fix corresponding bug plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
3 participants