From 1146e66f30f23a0ffad4f652fd290313729d8bc5 Mon Sep 17 00:00:00 2001 From: "R.I.Pienaar" Date: Mon, 13 Dec 2021 11:51:33 +0100 Subject: [PATCH] fixes a nil panic on jsz Appears what happens is that the getPublicConsumers() is called which produces a list of consumers and that between the time the list is made and the Info() is called the ephemeral was removed. Signed-off-by: R.I.Pienaar --- server/monitor.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/monitor.go b/server/monitor.go index 8fa54c14..99b6520b 100644 --- a/server/monitor.go +++ b/server/monitor.go @@ -2474,6 +2474,10 @@ func (s *Server) accountDetail(jsa *jsAccount, optStreams, optConsumers, optCfg if optConsumers { for _, consumer := range stream.getPublicConsumers() { cInfo := consumer.info() + if cInfo == nil { + continue + } + if !optCfg { cInfo.Config = nil }