Improve null-safety of module/spring-boot-mongodb

See gh-46926
This commit is contained in:
Moritz Halbritter
2025-08-26 14:22:55 +02:00
parent 49d3bd32c4
commit eb14624047
@@ -117,8 +117,9 @@ public final class MongoReactiveAutoConfiguration {
@Override
public void customize(Builder builder) {
if (!isCustomTransportConfiguration(this.settings.getIfAvailable())) {
this.eventLoopGroup = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());
builder.transportSettings(TransportSettings.nettyBuilder().eventLoopGroup(this.eventLoopGroup).build());
EventLoopGroup eventLoopGroup = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());
this.eventLoopGroup = eventLoopGroup;
builder.transportSettings(TransportSettings.nettyBuilder().eventLoopGroup(eventLoopGroup).build());
}
}