fix(climc): avoid panic

This commit is contained in:
ioito
2023-08-07 18:48:26 +08:00
parent 3445f1f912
commit 97f3bb4d62
+1 -1
View File
@@ -75,7 +75,7 @@ func Executor(s string) {
} else {
session.GetClient().SetDebug(false)
}
if subparser.IsHelpSet() {
if subparser != nil && subparser.IsHelpSet() {
fmt.Print(subparser.HelpString())
return
}