From e8378c62612060fb33607c6f6341cda843cfa5c5 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Tue, 23 Sep 2025 20:35:57 +0800 Subject: [PATCH] :bug: https://github.com/siyuan-note/siyuan/issues/15915 Signed-off-by: Daniel <845765@qq.com> --- kernel/av/filter.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/av/filter.go b/kernel/av/filter.go index b7e33a624..e4066e308 100644 --- a/kernel/av/filter.go +++ b/kernel/av/filter.go @@ -542,7 +542,8 @@ func (value *Value) filter(other *Value, relativeDate, relativeDate2 *RelativeDa } } case KeyTypeRelation: - if nil != value.Relation && 0 < len(value.Relation.Contents) && nil != other && nil != other.Relation && 0 < len(other.Relation.Contents) { + if nil != value.Relation && 0 < len(value.Relation.Contents) && nil != value.Relation.Contents[0].Block && + nil != other && nil != other.Relation && 0 < len(other.Relation.Contents) && nil != other.Relation.Contents[0].Block { return filterTextContent(operator, value.Relation.Contents[0].Block.Content, other.Relation.Contents[0].Block.Content) } }