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

This commit is contained in:
Liang Ding
2023-01-27 19:45:23 +08:00
parent 6e02ffd7f5
commit a91a02f272

View File

@@ -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)