You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2022/06/30 12:43:46 UTC

[dubbo-spi-extensions] branch master updated: fix(#10209): fixed the bug that 'application discovery use http protocol throw NPE' (#123)

This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-spi-extensions.git


The following commit(s) were added to refs/heads/master by this push:
     new 3f24a4d  fix(#10209): fixed the bug that 'application discovery use http protocol throw NPE' (#123)
3f24a4d is described below

commit 3f24a4de976ce424b05326fcde402ab9651e32b6
Author: blake.qiu <46...@users.noreply.github.com>
AuthorDate: Thu Jun 30 20:43:41 2022 +0800

    fix(#10209): fixed the bug that 'application discovery use http protocol throw NPE' (#123)
    
    Co-authored-by: blake.qiu <bl...@ly.com>
---
 .../src/main/java/org/apache/dubbo/rpc/protocol/http/HttpProtocol.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dubbo-rpc-extensions/dubbo-rpc-http/src/main/java/org/apache/dubbo/rpc/protocol/http/HttpProtocol.java b/dubbo-rpc-extensions/dubbo-rpc-http/src/main/java/org/apache/dubbo/rpc/protocol/http/HttpProtocol.java
index a218099..ea17894 100644
--- a/dubbo-rpc-extensions/dubbo-rpc-http/src/main/java/org/apache/dubbo/rpc/protocol/http/HttpProtocol.java
+++ b/dubbo-rpc-extensions/dubbo-rpc-http/src/main/java/org/apache/dubbo/rpc/protocol/http/HttpProtocol.java
@@ -140,7 +140,7 @@ public class HttpProtocol extends AbstractProxyProtocol {
             }
             return invocation;
         });
-        String key = url.setProtocol("http").toIdentityString();
+        String key = url.toIdentityString();
         if (isGeneric) {
             key = key + "/" + GENERIC_KEY;
         }