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 https://ld246.com/article/1730909507718
Daniela134f0adb4ce
diff --git a/kernel/sql/av.go b/kernel/sql/av.goindex ae34bf8b2e..b84e490bab 100644--- a/kernel/sql/av.go+++ b/kernel/sql/av.go@@ -261,12 +261,15 @@ func RenderAttributeViewTable(attrView *av.AttributeView, view *av.View, query s}if nil != destAv {blocks := map[string]*av.Value{}- for _, blockValue := range destAv.GetBlockKeyValues().Values {- blocks[blockValue.BlockID] = blockValue- }- for _, blockID := range cell.Value.Relation.BlockIDs {- if val := blocks[blockID]; nil != val {- cell.Value.Relation.Contents = append(cell.Value.Relation.Contents, val)+ blockValues := destAv.GetBlockKeyValues()+ if nil != blockValues {+ for _, blockValue := range blockValues.Values {+ blocks[blockValue.BlockID] = blockValue+ }+ for _, blockID := range cell.Value.Relation.BlockIDs {+ if val := blocks[blockID]; nil != val {+ cell.Value.Relation.Contents = append(cell.Value.Relation.Contents, val)+ }}}}