Skip to content

Commit

Permalink
[image-builder] check nil ref
Browse files Browse the repository at this point in the history
  • Loading branch information
iQQBot authored and roboquat committed Dec 6, 2021
1 parent c0b7a94 commit 5bd176b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/image-builder-mk3/pkg/orchestrator/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func findTaskLogURL(ctx context.Context, ideURL, authToken string) (taskLogURL s
// gRPC-web race in supervisor?
return true, nil
}
if resp.StatusCode == http.StatusNotFound {
if resp != nil && resp.StatusCode == http.StatusNotFound {
// We're too quick to connect - ws-proxy doesn't keep up
return true, nil
}
Expand Down

0 comments on commit 5bd176b

Please sign in to comment.