introduced nil deref when no JS for account
@@ -502,11 +502,13 @@ func (c *actCmd) infoAction(_ *fisk.ParseContext) error {
info, err := mgr.JetStreamAccountInfo()
+ if err == nil {
if info.Domain == "" {
fmt.Println("JetStream Account Information:")
} else {
fmt.Printf("JetStream Account Information for domain %s:\n", info.Domain)
}
+ }
fmt.Println()
switch err {
