Skip to content

Commit

Permalink
WFLY-19132 MSC000004: Failure during stop of service jboss.undertow.f…
Browse files Browse the repository at this point in the history
…ilter.load-balancer.service: NPE
  • Loading branch information
pferraro committed Mar 14, 2024
1 parent 6308993 commit 148bad3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import java.io.IOException;
import java.net.InetAddress;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.function.Consumer;
import java.util.function.Function;
Expand Down Expand Up @@ -161,8 +162,8 @@ public ServiceBuilder<?> build(ServiceTarget target) {
Consumer<Map.Entry<ModCluster, MCMPConfig>> consumer = new Consumer<>() {
@Override
public void accept(Map.Entry<ModCluster, MCMPConfig> entry) {
service.accept(entry.getKey());
config.accept(entry.getValue());
service.accept(Optional.ofNullable(entry).map(Map.Entry::getKey).orElse(null));
config.accept(Optional.ofNullable(entry).map(Map.Entry::getValue).orElse(null));
}
};
return builder.setInstance(new FunctionalService<>(consumer, Function.identity(), this, this));
Expand Down

0 comments on commit 148bad3

Please sign in to comment.