From a414256747ab6c309f4a55dcc3d99b0517ee3b54 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 20 Oct 2018 11:55:07 +0200 Subject: [PATCH] Check for empty messages Signed-off-by: Knut Ahlers --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 70f922f..9ea8d58 100644 --- a/main.go +++ b/main.go @@ -81,6 +81,10 @@ func main() { func processMessage(message string) error { logger := log.WithField("message", message) + if message == "" { + return nil + } + switch message[0] { case 'F': return processFS20Message(