aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient
diff options
context:
space:
mode:
authorGravatar Jorge Canizales <jcanizales@google.com>2015-08-01 18:34:02 -0700
committerGravatar Jorge Canizales <jcanizales@google.com>2015-08-01 18:34:02 -0700
commite21b467dc59b8d0ddc6f64bde65df07e121a0132 (patch)
tree03a369667a94fbc8df4d2c422445b14791572f4a /src/objective-c/GRPCClient
parent000fa388b8d7c99601092976b5b1d93a9705e34d (diff)
GRPCChannel with NULL grpc_channel is nil.
Diffstat (limited to 'src/objective-c/GRPCClient')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCChannel.m2
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;