Skip to content

Commit

Permalink
Merge pull request wildfly#17719 from pferraro/WFLY-19132
Browse files Browse the repository at this point in the history
WFLY-19132 MSC000004: Failure during stop of service jboss.undertow.filter.load-balancer.service: NPE
  • Loading branch information
bstansberry authored Mar 17, 2024
2 parents f06cc39 + 148bad3 commit 5eb360e
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 5eb360e

Please sign in to comment.