diff --git a/libgm/response_handler.go b/libgm/response_handler.go index 5e23453..966de1c 100644 --- a/libgm/response_handler.go +++ b/libgm/response_handler.go @@ -20,6 +20,9 @@ func (s *SessionHandler) cancelResponse(requestID string, ch chan *IncomingRPCMe } func (s *SessionHandler) receiveResponse(msg *IncomingRPCMessage) bool { + if msg.Message == nil { + return false + } requestID := msg.Message.SessionID s.responseWaitersLock.Lock() ch, ok := s.responseWaiters[requestID]