Skip to content

Commit

Permalink
pkg/engine: fix nil-dereference
Browse files Browse the repository at this point in the history
Signed-off-by: AdamKorcz <adam@adalogics.com>
  • Loading branch information
AdamKorcz committed Mar 22, 2023
1 parent 299a646 commit 2a9594c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/engine/engine.go
Expand Up @@ -391,6 +391,9 @@ func recAllTpls(c *chart.Chart, templates map[string]renderable, vals chartutil.

newParentID := c.ChartFullPath()
for _, t := range c.Templates {
if t == nil {
continue
}
if !isTemplateValid(c, t.Name) {
continue
}
Expand Down

0 comments on commit 2a9594c

Please sign in to comment.