From 6313d4a3ddcf4605dc94d7f7f7b7525f973675f8 Mon Sep 17 00:00:00 2001 From: Liujian <824010343@qq.com> Date: Fri, 29 Aug 2025 18:24:08 +0800 Subject: [PATCH] fix: http_to_grpc bug --- drivers/plugins/http-to-gRPC/driver.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/plugins/http-to-gRPC/driver.go b/drivers/plugins/http-to-gRPC/driver.go index 31567779..f62644da 100644 --- a/drivers/plugins/http-to-gRPC/driver.go +++ b/drivers/plugins/http-to-gRPC/driver.go @@ -41,7 +41,9 @@ func getDescSource(protobufID string, reflect bool) (grpc_descriptor.IDescriptor if protobufID == "" { return nil, fmt.Errorf("protobuf id is empty") } - + if worker == nil { + return nil, fmt.Errorf("protobuf worker is not initialized") + } w, ok := worker.Get(protobufID) if ok { v, ok := w.(grpc_descriptor.IDescriptor)