add no-argument constructor method to URL.java fix #3342 (#3350)

* Fix NullPointerException when Hessian instantiate URL with JavaDeserializer
This commit is contained in:
IORI 2019-01-25 18:29:48 +08:00 committed by 时无两丶
parent a6d55faf75
commit 6dcd5938c3
1 changed files with 4 additions and 0 deletions

View File

@ -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());
}