fix(helm): fix nil pointer in requirements.go

This fixes a segfault that was the result of assigning to a property of
a nil pointer.

Closes #2244
parent 26343023
...@@ -384,8 +384,9 @@ func processImportValues(c *chart.Chart, v *chart.Config) error { ...@@ -384,8 +384,9 @@ func processImportValues(c *chart.Chart, v *chart.Config) error {
if err != nil { if err != nil {
return err return err
} }
// set the new values // set the new values
c.Values.Raw = string(y) c.Values = &chart.Config{Raw: string(y)}
return nil return nil
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment