List of usage examples for java.net MalformedURLException fillInStackTrace
public synchronized Throwable fillInStackTrace()
From source file:org.pmedv.core.components.RelativeImageView.java
/** * Method returns a URL for the image source, or null if it could not be * determined// w ww .j a v a 2 s . c o m * * @returns a URL for the image source or null if it could not be * determined. */ private URL getSourceURL() { String src = (String) fElement.getAttributes().getAttribute(HTML.Attribute.SRC); if (src == null) return null; URL reference = ((HTMLDocument) getDocument()).getBase(); try { URL u = new URL(reference, src); return u; } catch (MalformedURLException mue) { log.warn("malformed URL: " + mue.fillInStackTrace()); return null; } }