Code example for MalformedURLException

0
        if (base == null) {
            if (context == null)
                return null; 
            base = context.getBaseResource();
            if (base == null)
                return null; 
        } 
 
        try { 
            return base.addPath(URIUtil.canonicalPath(path));
        } catch (Exception ignore) {
        } 
 
        return null; 
    } 
 
    // -------------------------------------------------------------------- 
    //               p r i v a t e 
    // -------------------------------------------------------------------- 
 
    private static String decode(final String value) {