From f03a58dd62fef406ceaaa9f8bf1899f4115d8ea9 Mon Sep 17 00:00:00 2001 From: Maurice van Veen Date: Mon, 4 Nov 2024 20:17:49 +0100 Subject: [PATCH] [FIXED] Panic on nil sysAcc Signed-off-by: Maurice van Veen --- server/jetstream_cluster.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/jetstream_cluster.go b/server/jetstream_cluster.go index baf15307d52..656fe3e3e6d 100644 --- a/server/jetstream_cluster.go +++ b/server/jetstream_cluster.go @@ -780,6 +780,9 @@ func (js *jetStream) setupMetaGroup() error { // Setup our WAL for the metagroup. sysAcc := s.SystemAccount() + if sysAcc == nil { + return errors.New("no system account") + } storeDir := filepath.Join(js.config.StoreDir, sysAcc.Name, defaultStoreDirName, defaultMetaGroupName) js.srv.optsMu.RLock()