Merge pull request #4005 from ks-ci-bot/cherry-pick-4003-to-release-3.1

[release-3.1] Fix panic due to nil pointer exception
This commit is contained in:
KubeSphere CI Bot
2021-06-25 22:12:00 +08:00
committed by GitHub

View File

@@ -47,6 +47,7 @@ type terminalHandler struct {
func newTerminalHandler(client kubernetes.Interface, authorizer authorizer.Authorizer, config *rest.Config) *terminalHandler {
return &terminalHandler{
authorizer: authorizer,
terminaler: terminal.NewTerminaler(client, config),
}
}