From fe2c0c6569fd40bc5f8c75a97495770bd0da1f4b Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Wed, 29 Apr 2015 10:59:43 -0700 Subject: [PATCH] Added nil check in GRPCWrappedCall initializer --- src/objective-c/GRPCClient/private/GRPCWrappedCall.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m index 50dea9a4dde..312a6832d24 100644 --- a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m +++ b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m @@ -273,6 +273,9 @@ }); _queue = [GRPCCompletionQueue completionQueue]; + if (!_queue) { + return nil; + } _call = grpc_channel_create_call(channel.unmanagedChannel, _queue.unmanagedQueue, method.UTF8String, host.UTF8String, gpr_inf_future); if (_call == NULL) {