We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca7b46d commit 9de5ffcCopy full SHA for 9de5ffc
google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionImpl.java
@@ -600,7 +600,11 @@ int getChannel() {
600
if (getIsMultiplexed()) {
601
return 0;
602
}
603
- Long channelHint = (Long) this.getOptions().get(SpannerRpc.Option.CHANNEL_HINT);
+ Map<SpannerRpc.Option, ?> options = this.getOptions();
604
+ if (options == null) {
605
+ return 0;
606
+ }
607
+ Long channelHint = (Long) options.get(SpannerRpc.Option.CHANNEL_HINT);
608
if (channelHint == null) {
609
610
0 commit comments