mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 12:14:49 +00:00
1 parent
b31da911b5
commit
6650fae7ad
1 file changed
+1
-1
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user