🐛 Fix NPE

This commit is contained in:
Daniel 2024-10-19 12:01:26 +08:00
parent c3d5db2e12
commit 3830988747
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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 {