Merge pull request #17719 from ioito/hotfix/qx-climc-panic

fix(climc): avoid panic
This commit is contained in:
Zexi Li
2023-08-07 20:20:28 +08:00
committed by GitHub
+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
}