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