Skip to content

Commit

Permalink
Fix BWC for compute listener (#110615) (#110617)
Browse files Browse the repository at this point in the history
ComputeResponse from old nodes may have a null value instead of an empty
list for profiles.

Relates #110400 Closes #110591
  • Loading branch information
dnhatn authored Jul 9, 2024
1 parent d0859d5 commit 41c662d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ ActionListener<Void> acquireAvoid() {
ActionListener<ComputeResponse> acquireCompute() {
return acquireAvoid().map(resp -> {
responseHeaders.collect();
if (resp != null && resp.getProfiles().isEmpty() == false) {
collectedProfiles.addAll(resp.getProfiles());
var profiles = resp.getProfiles();
if (profiles != null && profiles.isEmpty() == false) {
collectedProfiles.addAll(profiles);
}
return null;
});
Expand Down

0 comments on commit 41c662d

Please sign in to comment.