diff --git a/cmd/debos/debos.go b/cmd/debos/debos.go index 1184134..d710f38 100644 --- a/cmd/debos/debos.go +++ b/cmd/debos/debos.go @@ -110,7 +110,7 @@ func DumpActionFields(iface interface{}, depth int) { case reflect.Slice: s := reflect.ValueOf(f.Interface()) - if s.Index(0).Kind() == reflect.Struct { + if s.Len() > 0 && s.Index(0).Kind() == reflect.Struct { log.Printf(" %s:\n", entries.Type().Field(i).Name) for j := 0; j < s.Len(); j++ { if s.Index(j).Kind() == reflect.Struct {