diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedProxyHandler.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedProxyHandler.java index cde4f0d034fd8..82c548558a30b 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedProxyHandler.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/ForwardedProxyHandler.java @@ -79,7 +79,7 @@ private void lookupHostNamesAndHandleRequest(HttpServerRequest event, new Handler>() { @Override public void handle(AsyncResult 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