diff --git a/pkg/template/template_filters.go b/pkg/template/template_filters.go index f8be0939..5aba54d2 100644 --- a/pkg/template/template_filters.go +++ b/pkg/template/template_filters.go @@ -146,7 +146,7 @@ func filterToYAML(in *pongo2.Value, param *pongo2.Value) (*pongo2.Value, *pongo2 b := bytes.Buffer{} yamlEncoder := yaml.NewEncoder(&b) - if param.String() != "" { + if param != nil && param.String() != "" { pm, err := parseParamMap(param.String()) if err != nil { return nil, &pongo2.Error{