diff --git a/tpl/template.go b/tpl/template.go index 617aa84ec..356d66f1e 100644 --- a/tpl/template.go +++ b/tpl/template.go @@ -88,7 +88,7 @@ func (t *TemplateAdapter) Tree() string { panic("Unknown template") } - if tree.Root == nil { + if tree == nil || tree.Root == nil { return "" } s := tree.Root.String()