Skip to content

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

:bug: v202301271540 logging.go panic 异常,导致内核崩溃 Fix https://github.com/siyuan-note/siyuan/issues/7179

Liang Dinga91a02f272c7
diff --git a/kernel/filesys/tree.go b/kernel/filesys/tree.go
index fd6e067f11..dd8d5ce19a 100644
--- a/kernel/filesys/tree.go
+++ b/kernel/filesys/tree.go
@@ -270,7 +270,7 @@ func parseJSON2Tree(boxID, p string, jsonData []byte, luteEngine *lute.Lute) (re
func ReadDocIAL(data []byte) (ret map[string]string) {
ret = map[string]string{}
val := jsoniter.Get(data, "Properties")
- if nil == val {
+ if nil == val || val.ValueType() == jsoniter.InvalidValue {
return
}
val.ToVal(&ret)