diff --git a/ranger-core/src/main/java/io/appform/ranger/core/finderhub/ServiceFinderHub.java b/ranger-core/src/main/java/io/appform/ranger/core/finderhub/ServiceFinderHub.java index d01ad3ff..f2ecd452 100644 --- a/ranger-core/src/main/java/io/appform/ranger/core/finderhub/ServiceFinderHub.java +++ b/ranger-core/src/main/java/io/appform/ranger/core/finderhub/ServiceFinderHub.java @@ -103,7 +103,7 @@ public ServiceFinderHub( Collections.emptyList(), 10_000)); this.refresherPool = createRefresherPool(); - this.excludedServices = excludedServices; + this.excludedServices = Objects.requireNonNullElseGet(excludedServices, Set::of); } public Optional> finder(final Service service) {