Duplicate :
|
The Old199.getPath () uses jfo.toUri().getPath(), which returns null in the case when URI has a jar protocol. It can be workarounded by jfo.toUri().toURL().getPath(), but it is better not to use this method at all when the URI protocol isn't "file".
|