mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 20:00:07 +00:00
Merge pull request #135918 from MarcosDaNight/fix/kubectl-exec-panic
kubectl: Fix panic in exec terminal size queue
This commit is contained in:
@@ -411,6 +411,10 @@ type terminalSizeQueueAdapter struct {
|
||||
}
|
||||
|
||||
func (a *terminalSizeQueueAdapter) Next() *remotecommand.TerminalSize {
|
||||
if a.delegate == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
next := a.delegate.Next()
|
||||
if next == nil {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user