Skip to content

Fixed nil pointer dereference (panic) when port numbers are unset #1563

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
Apr 15, 2025

Conversation

solidDoWant
Copy link
Contributor

What this PR does / why we need it:

When spec.globalInputs/*/forward is non-nil, but the port is unset, the operator panics and crashes. This PR adds a nil check to prevent this.

Which issue(s) this PR fixes:

N/A

Does this PR introduced a user-facing change?

Fixed the operator panicking when Fluentd global inputs are set but no port is provided

Additional documentation, usage docs, etc.:

N/A

@cw-Guo cw-Guo self-requested a review April 15, 2025 03:51
@cw-Guo cw-Guo merged commit 2d12e04 into fluent:master Apr 15, 2025
6 checks passed
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