diff --git a/pkg/systemstatsmonitor/osfeature_collector.go b/pkg/systemstatsmonitor/osfeature_collector.go index 1dd62c54..afff5fe9 100644 --- a/pkg/systemstatsmonitor/osfeature_collector.go +++ b/pkg/systemstatsmonitor/osfeature_collector.go @@ -142,7 +142,7 @@ func (ofc *osFeatureCollector) recordFeaturesFromModules(modules []system.Module } func (ofc *osFeatureCollector) collect() { - if ofc.osFeature == nil { + if ofc == nil || ofc.osFeature == nil { return } cmdlineArgs, err := system.CmdlineArgs()