Skip to content
Snippets Groups Projects
Commit dd3dcc5b authored by vito.he's avatar vito.he
Browse files

Fix: nil pointer panic when consumer.reference.invoker is nil

parent 0df1704f
No related branches found
No related tags found
No related merge requests found
......@@ -258,6 +258,7 @@ func Load() (map[string]*ReferenceConfig, map[string]*ServiceConfig) {
if ((refconfig.Check != nil && *refconfig.Check) ||
(refconfig.Check == nil && consumerConfig.Check != nil && *consumerConfig.Check) ||
(refconfig.Check == nil && consumerConfig.Check == nil)) && //default to true
refconfig.invoker != nil &&
!refconfig.invoker.IsAvailable() {
checkok = false
count++
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment