Skip to content

Commit

Permalink
fix(menu): Check template pointer before dereference (#906)
Browse files Browse the repository at this point in the history
Approved-by: Alexander Jung <alex@unikraft.io>
  • Loading branch information
nderjung committed Oct 21, 2023
2 parents 41e4e59 + f5662e0 commit 577c578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kraft/menu/menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (opts *Menu) pull(ctx context.Context, project app.Application, workdir str
}
}

if opts.project.Template().Name() != "" {
if opts.project.Template() != nil && opts.project.Template().Name() != "" {
templateWorkdir, err := unikraft.PlaceComponent(workdir, opts.project.Template().Type(), opts.project.Template().Name())
if err != nil {
return err
Expand Down

0 comments on commit 577c578

Please sign in to comment.