Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/template.go')
-rw-r--r--tpl/template.go2
1 files changed, 1 insertions, 1 deletions
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()