Skip to content

Commit

Permalink
[BugFix] Fix NPE (#25032)
Browse files Browse the repository at this point in the history
Fixes #issue

## What type of PR is this:
- [x] BugFix
- [ ] Feature
- [ ] Enhancement
- [ ] Refactor
- [ ] UT
- [ ] Doc
- [ ] Tool

## Checklist:
- [ ] I have added test cases for my bug fix or my new feature
- [ ] This pr will affect users' behaviors
- [ ] This pr needs user documentation (for new or modified features or
behaviors)
  - [ ] I have added documentation for my new feature or new function

## Bugfix cherry-pick branch check:
- [x] I have checked the version labels which the pr will be
auto-backported to the target branch
  - [ ] 3.1
  - [ ] 3.0
  - [ ] 2.5
  - [x] 2.4
  - [x] 2.3

Signed-off-by: liuyehcf <[email protected]>
  • Loading branch information
liuyehcf authored Jun 12, 2023
1 parent bdbde7c commit 8dc1b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fe/fe-core/src/main/java/com/starrocks/qe/Coordinator.java
Original file line number Diff line number Diff line change
Expand Up @@ -2656,7 +2656,7 @@ public void mergeIsomorphicProfiles() {
instanceProfile.removeInfoString("Address");
});
fragmentProfile.addInfoString("BackendAddresses", String.join(",", backendAddresses));
Counter backendNum = fragmentProfile.addCounter("BackendNum", TUnit.UNIT, null);
Counter backendNum = fragmentProfile.addCounter("BackendNum", TUnit.UNIT);
backendNum.setValue(backendAddresses.size());

// Setup number of instance
Expand Down

0 comments on commit 8dc1b68

Please sign in to comment.