From 8c5245980a363c7cfd967fd8019247eaa112d6ab Mon Sep 17 00:00:00 2001 From: kpango Date: Thu, 21 Jan 2021 17:03:12 +0900 Subject: [PATCH] bugfix gateway-lb nil pointer panic due to nil filter configuration Signed-off-by: kpango --- pkg/gateway/lb/handler/grpc/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gateway/lb/handler/grpc/handler.go b/pkg/gateway/lb/handler/grpc/handler.go index b47167790d..9ff9769e28 100644 --- a/pkg/gateway/lb/handler/grpc/handler.go +++ b/pkg/gateway/lb/handler/grpc/handler.go @@ -659,7 +659,7 @@ func (s *server) Update(ctx context.Context, req *payload.Update_Request) (res * Vector: req.GetVector(), Config: &payload.Insert_Config{ SkipStrictExistCheck: true, - Filters: req.GetConfig().Filters, + Filters: req.GetConfig().GetFilters(), }, }) if err != nil {