diff --git a/src/objective-c/GRPCClient/private/GRPCChannel.m b/src/objective-c/GRPCClient/private/GRPCChannel.m index 68a402db97a..49d6008fd4d 100644 --- a/src/objective-c/GRPCClient/private/GRPCChannel.m +++ b/src/objective-c/GRPCClient/private/GRPCChannel.m @@ -42,7 +42,7 @@ // Designated initializer - (instancetype)initWithChannel:(grpc_channel *)unmanagedChannel { if (!unmanagedChannel) { - [NSException raise:NSInvalidArgumentException format:@"unmanagedChannel can't be nil."]; + return nil; } if ((self = [super init])) { _unmanagedChannel = unmanagedChannel;