diff --git a/correlation/rules/update.go b/correlation/rules/update.go index 4e3c42a4f..170ccc415 100644 --- a/correlation/rules/update.go +++ b/correlation/rules/update.go @@ -24,7 +24,7 @@ func Update(updateReady chan bool) { } } - if f.IsDir() || f.Name() == "system" { + if f != nil && (f.IsDir() || f.Name() == "system") { rm := exec.Command("rm", "-R", cnf.RulesFolder+"system") err = rm.Run() if err != nil {