Browse Source
Class.getResource, ClassLoader.getResource, and ClassLoader.getSystemResource will throw IllegalArgumentException if a malformed URL is provided to them. According to its javadoc, resolveURL should return null if not resolvable, so catch the IllegalArgumentException and return null.pull/26612/head
1 changed files with 12 additions and 7 deletions
Loading…
Reference in new issue