Skip to content

Commit

Permalink
bugfix npe monitor jobid may be null (#1701)
Browse files Browse the repository at this point in the history
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Co-authored-by: Logic <zqr10159@dromara.org>
  • Loading branch information
tomsun28 and zqr10159 authored Apr 1, 2024
1 parent eda782f commit f33226f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,9 @@ public long updateAsyncCollectJob(Job modifyJob, String collector) {

@Override
public void cancelAsyncCollectJob(Long jobId) {
if (jobId == null) {
return;
}
for (ConsistentHash.Node node : consistentHash.getAllNodes().values()) {
AssignJobs assignJobs = node.getAssignJobs();
if (assignJobs.getPinnedJobs().remove(jobId)
Expand Down

0 comments on commit f33226f

Please sign in to comment.