mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-29 18:38:44 +08:00
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:
parent
c93ae72d92
commit
ae8f46f431
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user