diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/devmode/ResourceNotFoundData.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/devmode/ResourceNotFoundData.java index d17b2ddcf9e8b..1cb02e5e4e614 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/devmode/ResourceNotFoundData.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/devmode/ResourceNotFoundData.java @@ -12,6 +12,7 @@ import java.nio.file.SimpleFileVisitor; import java.nio.file.attribute.BasicFileAttributes; import java.util.ArrayList; +import java.util.Collections; import java.util.Comparator; import java.util.HashSet; import java.util.List; @@ -39,9 +40,9 @@ public class ResourceNotFoundData { private String baseUrl; private String httpRoot; - private List endpointRoutes; - private Set staticRoots; - private List additionalEndpoints; + private List endpointRoutes = Collections.emptyList(); + private Set staticRoots = Collections.emptySet(); + private List additionalEndpoints = Collections.emptyList(); public void setBaseUrl(String baseUrl) { this.baseUrl = baseUrl;