Skip to content
Snippets Groups Projects
Commit e21b467d authored by Jorge Canizales's avatar Jorge Canizales
Browse files

GRPCChannel with NULL grpc_channel is nil.

parent 000fa388
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
// Designated initializer // Designated initializer
- (instancetype)initWithChannel:(grpc_channel *)unmanagedChannel { - (instancetype)initWithChannel:(grpc_channel *)unmanagedChannel {
if (!unmanagedChannel) { if (!unmanagedChannel) {
[NSException raise:NSInvalidArgumentException format:@"unmanagedChannel can't be nil."]; return nil;
} }
if ((self = [super init])) { if ((self = [super init])) {
_unmanagedChannel = unmanagedChannel; _unmanagedChannel = unmanagedChannel;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment