Skip to content

Commit

Permalink
add no-argument constructor method to URL.java fix #3342 (#3350)
Browse files Browse the repository at this point in the history
* Fix NullPointerException when Hessian instantiate URL with JavaDeserializer
  • Loading branch information
qq925716471 authored and carryxyh committed Jan 25, 2019
1 parent a6d55fa commit 6dcd593
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
@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());
}
Expand Down

0 comments on commit 6dcd593

Please sign in to comment.