Skip to content

Commit

Permalink
Fix nil pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
bkneis committed Dec 19, 2024
1 parent 61d7a31 commit 2bcb5c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/devcontainer/feature/extend.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ _REMOTE_USER=`+remoteUser+"\n"), 0600)
dockerfileContent := strings.ReplaceAll(FEATURE_BASE_DOCKERFILE, "#{featureLayer}", getFeatureLayers(containerUser, remoteUser, features))
// get build syntax from Dockerfile or use default
syntax := "docker.io/docker/dockerfile:1.4"
if imageBuildInfo.Dockerfile.Syntax != "" {
if imageBuildInfo.Dockerfile != nil && imageBuildInfo.Dockerfile.Syntax != "" {
syntax = imageBuildInfo.Dockerfile.Syntax
}
dockerfilePrefix := fmt.Sprintf(`
Expand Down

0 comments on commit 2bcb5c4

Please sign in to comment.