Skip to content

Commit 89ef73d

Browse files
authored
Fix NPE when using tri as metadata service protocol (#10639)
1 parent 8f7d1f3 commit 89ef73d

File tree

1 file changed

+1
-1
lines changed
  • dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/metadata

1 file changed

+1
-1
lines changed

dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/metadata/MetadataUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public static ProxyHolder referProxy(ServiceInstance instance) {
137137

138138
Protocol protocol = applicationModel.getExtensionLoader(Protocol.class).getAdaptiveExtension();
139139

140-
url.setServiceModel(consumerModel);
140+
url = url.setServiceModel(consumerModel);
141141

142142
Invoker<MetadataService> invoker = protocol.refer(MetadataService.class, url);
143143

0 commit comments

Comments
 (0)