Skip to content
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

Add null check for resource path in filter #8312

Merged
merged 1 commit into from Jan 30, 2024

Conversation

tjquinno
Copy link
Member

Description

Resolves #8311

It turns out that the path returned from the Jersey Resource can be null in some cases. So add a null check before trying to use it.

A user found this but we do not have a small reproducer so the PR does not include a verifying test.

As noted in the issue, the Jersey code anticipates the path being null sometimes so we should have checked for null ourselves too. With this PR, we now do.

Documentation

No impact

Signed-off-by: Tim Quinn <tim.quinn@oracle.com>
@tjquinno tjquinno self-assigned this Jan 30, 2024
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jan 30, 2024
@tjquinno tjquinno merged commit 43ef5f8 into helidon-io:main Jan 30, 2024
12 checks passed
@tjquinno tjquinno deleted the 4.x-tracing-filter-npe branch January 30, 2024 22:49
hrstoyanov pushed a commit to hrstoyanov/helidon that referenced this pull request Feb 23, 2024
Signed-off-by: Tim Quinn <tim.quinn@oracle.com>
tvallin pushed a commit to tvallin/helidon that referenced this pull request Feb 28, 2024
Signed-off-by: Tim Quinn <tim.quinn@oracle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4.x NPE from HelidonTelemetryContainerFilter in a user test
2 participants