diff options
author | Jorge Canizales <jcanizales@google.com> | 2015-08-01 18:34:02 -0700 |
---|---|---|
committer | Jorge Canizales <jcanizales@google.com> | 2015-08-01 18:34:02 -0700 |
commit | e21b467dc59b8d0ddc6f64bde65df07e121a0132 (patch) | |
tree | 03a369667a94fbc8df4d2c422445b14791572f4a /src/objective-c/GRPCClient | |
parent | 000fa388b8d7c99601092976b5b1d93a9705e34d (diff) |
GRPCChannel with NULL grpc_channel is nil.
Diffstat (limited to 'src/objective-c/GRPCClient')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCChannel.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCChannel.m b/src/objective-c/GRPCClient/private/GRPCChannel.m index 68a402db97..49d6008fd4 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; |