This is an automated email from the ASF dual-hosted git repository.
carryxyh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new 6dcd593 add no-argument constructor method to URL.java fix #3342
(#3350)
6dcd593 is described below
commit 6dcd5938c30cb3994f08c3ea93089473234500ca
Author: IORI <[email protected]>
AuthorDate: Fri Jan 25 18:29:48 2019 +0800
add no-argument constructor method to URL.java fix #3342 (#3350)
* Fix NullPointerException when Hessian instantiate URL with
JavaDeserializer
---
dubbo-compatible/src/main/java/com/alibaba/dubbo/common/URL.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dubbo-compatible/src/main/java/com/alibaba/dubbo/common/URL.java
b/dubbo-compatible/src/main/java/com/alibaba/dubbo/common/URL.java
index 255481f..42bab29 100644
--- a/dubbo-compatible/src/main/java/com/alibaba/dubbo/common/URL.java
+++ b/dubbo-compatible/src/main/java/com/alibaba/dubbo/common/URL.java
@@ -27,6 +27,10 @@ import java.util.Map;
@Deprecated
public class URL extends org.apache.dubbo.common.URL {
+ protected URL() {
+ super();
+ }
+
public URL(org.apache.dubbo.common.URL url) {
super(url.getProtocol(), url.getUsername(), url.getPassword(),
url.getHost(), url.getPort(), url.getPath(), url.getParameters());
}