From 7f2b09a3b4da8b7c972d53873baccba423c04884 Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Wed, 15 Oct 2025 12:54:09 -0400 Subject: [PATCH] fix(protocol): return error on nil leios-notify request next Signed-off-by: Chris Gianelloni --- protocol/leiosnotify/server.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/protocol/leiosnotify/server.go b/protocol/leiosnotify/server.go index f52c0cf4..ebca8ede 100644 --- a/protocol/leiosnotify/server.go +++ b/protocol/leiosnotify/server.go @@ -95,6 +95,11 @@ func (s *Server) handleRequestNext() error { if err != nil { return err } + if resp == nil { + return errors.New( + "received leios-notify NotificationRequestNext message but callback returned nil", + ) + } if err := s.SendMessage(resp); err != nil { return err }