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: The `updateBlock` API encountered a null pointer error https://github.com/siyuan-note/siyuan/issues/16705
Danielbc6b382bd16a
diff --git a/kernel/api/block_op.go b/kernel/api/block_op.goindex 1d58fb9afd..718886a2dc 100644--- a/kernel/api/block_op.go+++ b/kernel/api/block_op.go@@ -706,8 +706,8 @@ func updateBlock(c *gin.Context) {if nil != tree.Root.FirstChild {tree.Root.FirstChild.SetIALAttr("id", id)} else {- logging.LogWarnf("tree root has no child node when updating block [id=%s]", id)- return+ logging.LogWarnf("tree root has no child node, append empty paragraph node")+ tree.Root.AppendChild(treenode.NewParagraph(id))}data = luteEngine.Tree2BlockDOM(tree, luteEngine.RenderOptions, luteEngine.ParseOptions)