diff --git a/api/v1/interface.go b/api/v1/interface.go index b7d9f155..eb40de03 100644 --- a/api/v1/interface.go +++ b/api/v1/interface.go @@ -306,6 +306,9 @@ func (t *ChangeSummary) Merge(b ChangeSummary) { } func (t *ChangeSummary) Totals() (ignored, orphaned, errors int) { + if t == nil { + return 0, 0, 0 + } for _, v := range t.Ignored { ignored += v }