[BinderTransport] Add missing ChannelArgsPreconditioning (#28347)

This fixes crash in example app
pull/28361/head
Ming-Chuan 3 years ago committed by GitHub
parent 0087990e07
commit 835afc0fcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/core/ext/transport/binder/client/channel_create_impl.cc

@ -75,6 +75,10 @@ grpc_channel* CreateClientBinderChannelImpl(const grpc_channel_args* args) {
gpr_once_init(&g_factory_once, FactoryInit);
args = grpc_core::CoreConfiguration::Get()
.channel_args_preconditioning()
.PreconditionChannelArgs(args);
// Set channel factory argument
grpc_arg channel_factory_arg =
grpc_core::ClientChannelFactory::CreateChannelArg(g_factory);
@ -90,6 +94,8 @@ grpc_channel* CreateClientBinderChannelImpl(const grpc_channel_args* args) {
// Clean up.
grpc_channel_args_destroy(new_args);
grpc_channel_args_destroy(args);
if (channel == nullptr) {
intptr_t integer;
grpc_status_code status = GRPC_STATUS_INTERNAL;

Loading…
Cancel
Save