diff --git a/event-stream-rpc-client/src/main/java/software/amazon/awssdk/eventstreamrpc/EventStreamRPCConnectionConfig.java b/event-stream-rpc-client/src/main/java/software/amazon/awssdk/eventstreamrpc/EventStreamRPCConnectionConfig.java index eef8278..9f65643 100644 --- a/event-stream-rpc-client/src/main/java/software/amazon/awssdk/eventstreamrpc/EventStreamRPCConnectionConfig.java +++ b/event-stream-rpc-client/src/main/java/software/amazon/awssdk/eventstreamrpc/EventStreamRPCConnectionConfig.java @@ -59,7 +59,7 @@ public EventStreamRPCConnectionConfig(ClientBootstrap clientBootstrap, EventLoop //bit of C++ RAII here, validate what we can if (clientBootstrap == null || eventLoopGroup == null || socketOptions == null || - host == null || host.isEmpty() || port < 0) { + host == null || host.isEmpty()) { throw new IllegalArgumentException("EventStreamRPCConnectionConfig values are invalid!"); } }