Skip to content

Commit

Permalink
Merge pull request #36682 from Ladicek/forwarded-proxy-handler-npe
Browse files Browse the repository at this point in the history
Vert.x: fix NPE in ForwardedProxyHandler
  • Loading branch information
gsmet authored Oct 25, 2023
2 parents 7e19d8c + 985e78e commit 8cb1e33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private void lookupHostNamesAndHandleRequest(HttpServerRequest event,
new Handler<AsyncResult<String>>() {
@Override
public void handle(AsyncResult<String> stringAsyncResult) {
if (stringAsyncResult.succeeded()) {
if (stringAsyncResult.succeeded() && stringAsyncResult.result() != null) {
var trustedIP = Inet.parseInetAddress(stringAsyncResult.result());
if (trustedIP != null) {
// create proxy check for resolved IP and proceed with the lookup
Expand Down

0 comments on commit 8cb1e33

Please sign in to comment.