We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
org.eclipse.jetty.ee8.nested.Request.getRequestURL
Jetty version(s) 12.0.9
Jetty Environment ee8
Java version/vendor (use: java -version) Any
(use: java -version)
OS type/version Any
Description
Cause: java.lang.NullPointerException: Cannot invoke "String.length()" because "s" is null StackTrace: org.eclipse.jetty.util.AbstractTrie.get(AbstractTrie.java:66) org.eclipse.jetty.server.Request.getServerPort(Request.java:489) org.eclipse.jetty.ee8.nested.Request.getServerPort(Request.java:1142) org.eclipse.jetty.ee8.nested.Request.getRequestURL(Request.java:1088)
The text was updated successfully, but these errors were encountered:
Issue #11776 - NPE proteection in Request.getServerPort
c6ab71d
If the HttpURI is scheme-less, the attempt to get the port can result in a NPE
9160108
joakime
Successfully merging a pull request may close this issue.
Jetty version(s)
12.0.9
Jetty Environment
ee8
Java version/vendor
(use: java -version)
Any
OS type/version
Any
Description
The text was updated successfully, but these errors were encountered: