Skip to content

Commit

Permalink
remove nil panic if applicationinfo isn't provided (#2329)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreygolden committed Nov 16, 2021
1 parent 3b69bd1 commit 98aed02
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/template/builder.go
Expand Up @@ -52,8 +52,13 @@ func NewBuilder(opts BuilderOptions) (Builder, map[string]ItemValue, error) {
}
}

slug := ""
if opts.ApplicationInfo != nil {
slug = opts.ApplicationInfo.Slug
}

configCtx, err := b.newConfigContext(opts.ConfigGroups, opts.ExistingValues, opts.LocalRegistry, opts.Cipher,
opts.License, opts.Application, opts.VersionInfo, dockerHubRegistry, opts.ApplicationInfo.Slug)
opts.License, opts.Application, opts.VersionInfo, dockerHubRegistry, slug)
if err != nil {
return Builder{}, nil, errors.Wrap(err, "create config context")
}
Expand Down

0 comments on commit 98aed02

Please sign in to comment.