Skip to content

Commit

Permalink
add null check in constructor to initialize excluded services as empt…
Browse files Browse the repository at this point in the history
…y set
  • Loading branch information
Jitendra Dhawan committed Nov 21, 2024
1 parent 73dff82 commit df73636
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<ServiceFinder<T, R>> finder(final Service service) {
Expand Down

0 comments on commit df73636

Please sign in to comment.