Skip to content

Commit 4186871

Browse files
committed
Missing nil check
1 parent efec1c9 commit 4186871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reporter/parca_reporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ func (r *ParcaReporter) labelsForTID(tid, pid libpf.PID, comm string, cpu int, e
326326
lb.Set("__meta_env_var_"+k, v)
327327
}
328328

329-
if r.oomState.PidOomd(uint32(pid)) {
329+
if r.oomState != nil && r.oomState.PidOomd(uint32(pid)) {
330330
lb.Set("job", "oomprof")
331331
}
332332

0 commit comments

Comments
 (0)