Skip to content

Commit e5087cb

Browse files
authoredMar 10, 2025··
Merge pull request #1287 from ploubser/maint_fix_system_account_check
(maint) Check if system account is not nil before using it
2 parents a790e20 + ce45796 commit e5087cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎cli/auth_account_command.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ func (c *authAccountCommand) lsAction(_ *fisk.ParseContext) error {
773773
system := ""
774774
js := ""
775775
sa, err := operator.SystemAccount()
776-
if err == nil && acct.Subject() == sa.Subject() {
776+
if err == nil && sa != nil && acct.Subject() == sa.Subject() {
777777
system = "true"
778778
}
779779
if acct.Limits().JetStream().IsJetStreamEnabled() {

0 commit comments

Comments
 (0)
Please sign in to comment.