This commit is contained in:
Daniel 2025-08-23 21:49:57 +08:00
parent 17924377ec
commit 1503363a7c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -19,6 +19,7 @@ package av
import (
"fmt"
"math"
"reflect"
"sort"
"strconv"
"strings"
@ -808,7 +809,7 @@ func (r *ValueRollup) BuildContents(keyValues []*KeyValues, destKey *Key, relati
continue
}
if val := destVal.GetValByType(destKey.Type); nil == val {
if val := destVal.GetValByType(destKey.Type); nil == val || reflect.ValueOf(val).IsNil() {
// 目标字段因为修改类型导致空值
continue
}