Skip to content

Commit

Permalink
avoid null pointer dereference in language detection patcher (#33972)
Browse files Browse the repository at this point in the history
  • Loading branch information
adel121 authored Feb 12, 2025
1 parent fc1ab96 commit bc8f8e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/clusteragent/languagedetection/patcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ func (lp *languagePatcher) handleEvents(events []workloadmeta.Event) {

if err != nil {
lp.logger.Errorf("failed to handle event: %v", err)
} else {
lp.queue.Add(*owner)
}

lp.queue.Add(*owner)
}
}

Expand Down

0 comments on commit bc8f8e6

Please sign in to comment.