mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
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 <rip@devco.net>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user