Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Fix npe

Daniele6cfabe08ae7
diff --git a/kernel/model/index_fix.go b/kernel/model/index_fix.go
index 4d1579fbda..5eb2339e91 100644
--- a/kernel/model/index_fix.go
+++ b/kernel/model/index_fix.go
@@ -307,6 +307,10 @@ func fixBlockTreeByFileSys() {
return nil
}
+ if nil == info {
+ return nil
+ }
+
if info.IsDir() {
if strings.HasPrefix(info.Name(), ".") {
return filepath.SkipDir