sanitizePath
method in JaxrsClientReactiveProcessor
lacks null check
#45272
Labels
sanitizePath
method in JaxrsClientReactiveProcessor
lacks null check
#45272
Describe the bug
The
sanitizePath
method inJaxrsClientReactiveProcessor
does not perform a null check on its input parameterpath
. This could result in aNullPointerException
if thepath
argument is null. This issue may occur when external or user-defined configurations provide a null value.Steps to Reproduce:
NullPointerException
.Example:
Proposed Fix:
Add a null check to the
sanitizePath
method to handle null or empty input values gracefully.Suggested updated implementation:
Expected behavior
The method should handle null values gracefully and avoid throwing a
NullPointerException
.Actual behavior
A
NullPointerException
is thrown whenpath
isnull
.How to Reproduce?
Steps to Reproduce:
NullPointerException
.Output of
uname -a
orver
No response
Output of
java -version
Java 11/17/21
Quarkus version or git rev
3.17.0.CR1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle/Maven
Additional information
The method is located in the following file:
quarkus/extensions/resteasy-reactive/rest-client-jaxrs/deployment/src/main/java/io/quarkus/jaxrs/client/reactive/deployment/JaxrsClientReactiveProcessor.java
Line 3082 in 6d936b2
Please consider adding this fix to ensure the method is more robust and does not fail unexpectedly when encountering null inputs.
The text was updated successfully, but these errors were encountered: