From 19b111b1238d6aa770cb371dbf8b99492ae38d99 Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Wed, 12 Apr 2017 12:06:33 -0600 Subject: [PATCH] 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 --- pkg/chartutil/requirements.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/chartutil/requirements.go b/pkg/chartutil/requirements.go index c421b3dd6..5f9fa3b3d 100644 --- a/pkg/chartutil/requirements.go +++ b/pkg/chartutil/requirements.go @@ -384,8 +384,9 @@ func processImportValues(c *chart.Chart, v *chart.Config) error { if err != nil { return err } + // set the new values - c.Values.Raw = string(y) + c.Values = &chart.Config{Raw: string(y)} return nil }