🐛 Fix NPE
This commit is contained in:
parent
c3d5db2e12
commit
3830988747
1 changed files with 4 additions and 0 deletions
|
@ -215,6 +215,10 @@ func resolveEmbedR(n *ast.Node, blockEmbedMode int, luteEngine *lute.Lute, resol
|
|||
}
|
||||
|
||||
subTree, _ := LoadTreeByBlockID(sqlBlock.ID)
|
||||
if nil == subTree {
|
||||
continue
|
||||
}
|
||||
|
||||
var md string
|
||||
if "d" == sqlBlock.Type {
|
||||
if 0 == blockEmbedMode {
|
||||
|
|
Loading…
Add table
Reference in a new issue