code: public static URL correct(final URL url) throws MalformedURLException {
          if (url == null) {
              throw new MalformedURLException("The url is null");
          }
          return new URL(correct(url.toString(), false));
      }
docs: Corrects an URL.
  
  @param url
  The URL to be corrected. If null will throw
  MalformedURLException.
  @return a corrected URL. Never null.
  @exception MalformedURLException
  when the argument is null.