Skip to content

Commit

Permalink
nil metric list panic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrc committed Jun 29, 2016
1 parent 048448a commit 1f2ca82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/models/running_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (ro *RunningOutput) Write() error {
}

func (ro *RunningOutput) write(metrics []telegraf.Metric) error {
if len(metrics) == 0 {
if metrics == nil || len(metrics) == 0 {
return nil
}
start := time.Now()
Expand Down

0 comments on commit 1f2ca82

Please sign in to comment.