An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Fix npe
Danieldc95dc3555f5
diff --git a/kernel/model/blockinfo.go b/kernel/model/blockinfo.goindex 5b9ca044b3..fb13ebaae0 100644--- a/kernel/model/blockinfo.go+++ b/kernel/model/blockinfo.go@@ -253,7 +253,7 @@ func GetBlockIndex(id string) (ret int) {}rootChild := node- for ; nil == rootChild.Parent || ast.NodeDocument != rootChild.Parent.Type; rootChild = rootChild.Parent {+ for ; nil != rootChild.Parent && ast.NodeDocument != rootChild.Parent.Type; rootChild = rootChild.Parent {}ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {