/src/main/java/org/htmlunit/util/UrlUtils.java
if ( baseUrl == null) {
if ( url.scheme_ != null ) {
if (baseUrl == null) { return url; } if (relativeUrl.isEmpty()) { return new Url(baseUrl); } <extra_id_0> return url; } url.scheme_ = baseUrl.scheme_; if (url.location_ != null) { return url; }