guard Job.LogClone against nil Job

This commit is contained in:
Jesse Hallam
2023-10-06 16:27:52 -03:00
parent 17303cbac9
commit f1ae22dee5
+3
View File
@@ -120,6 +120,9 @@ func (j *Job) IsValid() *AppError {
}
func (j *Job) LogClone() any {
if j == nil {
return nil
}
return j.Auditable()
}