diff --git a/transport/src/main/java/io/netty/channel/embedded/EmbeddedChannel.java b/transport/src/main/java/io/netty/channel/embedded/EmbeddedChannel.java index aa30e721a1..66d96f0244 100644 --- a/transport/src/main/java/io/netty/channel/embedded/EmbeddedChannel.java +++ b/transport/src/main/java/io/netty/channel/embedded/EmbeddedChannel.java @@ -151,7 +151,7 @@ public class EmbeddedChannel extends AbstractChannel { final ChannelHandler... handlers) { super(null, channelId); metadata = metadata(hasDisconnect); - this.config = config; + this.config = ObjectUtil.checkNotNull(config, "config"); setup(handlers); }