diff --git a/convert.go b/convert.go index 7dbecb4..3124ce7 100644 --- a/convert.go +++ b/convert.go @@ -195,13 +195,15 @@ func convertEvidence(c *Component, specVersion SpecVersion) { } if specVersion < SpecVersion1_6 { - for i := range *c.Evidence.Occurrences { - occ := &(*c.Evidence.Occurrences)[i] - - occ.Line = nil - occ.Offset = nil - occ.Symbol = "" - occ.AdditionalContext = "" + if c.Evidence.Occurrences != nil { + for i := range *c.Evidence.Occurrences { + occ := &(*c.Evidence.Occurrences)[i] + + occ.Line = nil + occ.Offset = nil + occ.Symbol = "" + occ.AdditionalContext = "" + } } }