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
Daniel120a88db4cb6
diff --git a/kernel/model/index_fix.go b/kernel/model/index_fix.goindex 334684a90c..4d1579fbda 100644--- a/kernel/model/index_fix.go+++ b/kernel/model/index_fix.go@@ -154,6 +154,10 @@ func resetDuplicateBlocksOnFileSys() {boxPath := filepath.Join(util.DataDir, box.ID)var duplicatedTrees []*parse.Treefilepath.Walk(boxPath, func(path string, info os.FileInfo, err error) error {+ if nil == info {+ return nil+ }+if info.IsDir() {if boxPath == path {// 跳过根路径(笔记本文件夹)