fix: panic when get empty ids (#32220)

#32223

Signed-off-by: lixinguo <xinguo.li@zilliz.com>
Co-authored-by: lixinguo <xinguo.li@zilliz.com>
This commit is contained in:
smellthemoon 2024-04-15 16:53:23 +08:00 committed by GitHub
parent c93ae72d92
commit ae8f46f431
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1184,7 +1184,7 @@ func AppendIDs(dst *schemapb.IDs, src *schemapb.IDs, idx int) {
func GetSizeOfIDs(data *schemapb.IDs) int {
result := 0
if data.IdField == nil {
if data.GetIdField() == nil {
return result
}