Skip to content

Commit 793b731

Browse files
fix another npe
Change-Id: I7783a64a852b4cbfc4906b0e85fc418e426f517f
1 parent 38cb334 commit 793b731

File tree

1 file changed

+3
-1
lines changed
  • google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/csm

1 file changed

+3
-1
lines changed

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/csm/MetricsImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ public void close() {
118118

119119
@Override
120120
public void start() {
121-
tasks.add(channelPoolMetricsTracer.start(executor));
121+
if (channelPoolMetricsTracer != null) {
122+
tasks.add(channelPoolMetricsTracer.start(executor));
123+
}
122124
}
123125

124126
@Override

0 commit comments

Comments
 (0)