mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 13:14:41 -04:00
parent
b31da911b5
commit
6650fae7ad
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user