Skip to content

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

:bug: Fix a npe

Daniele3cce8b58b57
diff --git a/kernel/av/value.go b/kernel/av/value.go
index f7c3b32897..9f7cbe4c00 100644
--- a/kernel/av/value.go
+++ b/kernel/av/value.go
@@ -221,6 +221,10 @@ func (value *Value) IsEdited() bool {
}
func (value *Value) IsEmpty() bool {
+ if nil == value {
+ return true
+ }
+
switch value.Type {
case KeyTypeBlock:
if nil == value.Block {