GRPCChannel with NULL grpc_channel is nil.

pull/2754/head
Jorge Canizales 10 years ago
parent 000fa388b8
commit e21b467dc5
  1. 2
      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;

Loading…
Cancel
Save