diff --git a/dubbo-metadata/src/main/java/org/apache/dubbo/metadata/InMemoryLocalMetadataService.java b/dubbo-metadata/src/main/java/org/apache/dubbo/metadata/InMemoryLocalMetadataService.java index d4cd227e465..a932f40f878 100644 --- a/dubbo-metadata/src/main/java/org/apache/dubbo/metadata/InMemoryLocalMetadataService.java +++ b/dubbo-metadata/src/main/java/org/apache/dubbo/metadata/InMemoryLocalMetadataService.java @@ -158,7 +158,7 @@ private static List getServiceURLs(Map> exportedServic String protocol) { List serviceURLs = exportedServiceURLs.get(serviceKey); - if (serviceKey == null) { + if (serviceURLs == null) { return emptyList(); }