interop-test: fix orca interop test client npe (#9989)

This commit is contained in:
yifeizhuang 2023-03-24 10:05:56 -07:00 committed by GitHub
parent 99cbdd5d69
commit 687340bbbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -136,7 +136,9 @@ final class CustomBackendMetricsLoadBalancerProvider extends LoadBalancerProvide
public void onLoadReport(MetricReport callMetricReport) {
AtomicReference<TestOrcaReport> reportRef =
args.getCallOptions().getOption(ORCA_RPC_REPORT_KEY);
reportRef.set(fromCallMetricReport(callMetricReport));
if (reportRef != null) {
reportRef.set(fromCallMetricReport(callMetricReport));
}
}
}));
}