From 4c0249ba20ecffb2bd03974e50c355d21ade17d8 Mon Sep 17 00:00:00 2001 From: "cai.zhang" Date: Fri, 12 Sep 2025 14:47:59 +0800 Subject: [PATCH] fix: [2.5] Check if ArrayData is nil to prevent panic (#44333) issue: #44331 master pr: #44332 Signed-off-by: Cai Zhang --- internal/proxy/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/proxy/util.go b/internal/proxy/util.go index 3820aed08f..2dece40147 100644 --- a/internal/proxy/util.go +++ b/internal/proxy/util.go @@ -1120,7 +1120,7 @@ func fillFieldPropertiesBySchema(columns []*schemapb.FieldData, schema *schemapb // Set the ElementType because it may not be set in the insert request. if fieldData.Type == schemapb.DataType_Array { fd, ok := fieldData.Field.(*schemapb.FieldData_Scalars) - if !ok { + if !ok || fd.Scalars.GetArrayData() == nil { return fmt.Errorf("field convert FieldData_Scalars fail in fieldData, fieldName: %s,"+ " collectionName:%s", fieldData.FieldName, schema.Name) }