Commit b1521903 authored by Davanum Srinivas's avatar Davanum Srinivas

Prevent panic in 'kubectl exec' when redirecting stdout

Just add some nil checks to make sure we don't trip over when we redirect output from exec to a file. Fixes #30290
parent 489b204b
......@@ -63,7 +63,7 @@ func (p *streamProtocolV3) createStreams(conn streamCreator) error {
}
func (p *streamProtocolV3) handleResizes() {
if p.resizeStream == nil {
if p.resizeStream == nil || p.TerminalSizeQueue == nil {
return
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment