Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Novgorodov Igor, PMK-TV-OP authored and Novgorodov Igor, PMK-TV-OP committed Jun 7, 2019
1 parent 9bf7a54 commit 2ead48a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.1
1.4.2
4 changes: 4 additions & 0 deletions helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ func eventCompileFields(e *Event, hf []riemannFieldName, sep string) []byte {
}
}

if b.Len() == 0 {
return []byte{}
}

// Skip first dot
return b.Bytes()[1:]
}
Expand Down

0 comments on commit 2ead48a

Please sign in to comment.