From dd8050aaa2a97412939dbad37fce46054e2607d8 Mon Sep 17 00:00:00 2001 From: Alexander Date: Mon, 30 Oct 2023 17:40:41 +0100 Subject: [PATCH] feat(backend): fixed possible panic in ender --- backend/cmd/ender/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/cmd/ender/main.go b/backend/cmd/ender/main.go index 552ac4a10..0476018fe 100644 --- a/backend/cmd/ender/main.go +++ b/backend/cmd/ender/main.go @@ -173,7 +173,7 @@ func main() { } } } - if sess.Platform == "ios" { + if sess != nil && sess.Platform == "ios" { msg := &messages.IOSSessionEnd{Timestamp: timestamp} if err := producer.Produce(cfg.TopicRawIOS, sessionID, msg.Encode()); err != nil { log.Printf("can't send iOSSessionEnd to topic: %s; sessID: %d", err, sessionID)