Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit 99f8230

Browse files
fix npe
Change-Id: I5d43f5683fa33d34a7192ad36c8efdf87d01f0c2
1 parent fb97e05 commit 99f8230

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/compat/GaxBasicChannelProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public class GaxBasicChannelProvider implements ChannelProvider {
4040
@SuppressWarnings("rawtypes")
4141
public GaxBasicChannelProvider(
4242
InstantiatingGrpcChannelProvider inner, @Nullable Credentials credentials) {
43-
this.channelConfigurator = inner.toBuilder().getChannelConfigurator();
43+
this.channelConfigurator = Optional.ofNullable(inner.toBuilder().getChannelConfigurator())
44+
.orElse(b -> b);
4445
this.inner = inner.toBuilder().setAttemptDirectPath(false).build();
4546
this.credentials = Optional.ofNullable(credentials).map(MoreCallCredentials::from).orElse(null);
4647
}

0 commit comments

Comments
 (0)