This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go-pixiu.git
The following commit(s) were added to refs/heads/develop by this push:
new d841f5a5 fix panic issue when registries not config; (#580)
d841f5a5 is described below
commit d841f5a555d571b271a3f281c0f15ca5a4498834
Author: ma642 <[email protected]>
AuthorDate: Thu Oct 19 14:27:17 2023 +0800
fix panic issue when registries not config; (#580)
Co-authored-by: mazhihui <[email protected]>
---
pixiu/pkg/filter/http/remote/call.go | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pixiu/pkg/filter/http/remote/call.go
b/pixiu/pkg/filter/http/remote/call.go
index f6583539..505252c8 100644
--- a/pixiu/pkg/filter/http/remote/call.go
+++ b/pixiu/pkg/filter/http/remote/call.go
@@ -103,6 +103,9 @@ func (factory *FilterFactory) Apply() error {
}
factory.conf.Level = level
// must init it at apply function
+ if factory.conf.Dpc == nil {
+ return errors.New("expect the dubboProxyConfig config the
registries")
+ }
dubbo.InitDefaultDubboClient(factory.conf.Dpc)
triple.InitDefaultTripleClient(factory.conf.Dpc.Protoset)
return nil