NullPointer if URI begins "jar:file:/" in URIUtils
liuyx11241 opened this issue · 2 comments
liuyx11241 commented
URIUtils propose a SCHEMAURI_CHECKER.
But if the URI begins with "jar:file:", the argument.getPath() will return a null value then we will get a null pointer exception.
private static final ArgumentChecker<URI> SCHEMAURI_CHECKER
= new ArgumentChecker<URI>()
{
@Override
public void check(final URI argument)
{
BUNDLE.checkArgumentPrintf(argument.isAbsolute(),
"uriChecks.notAbsolute", argument);
final JsonRef ref = JsonRef.fromURI(argument);
BUNDLE.checkArgumentPrintf(ref.isAbsolute(),
"uriChecks.notAbsoluteRef", argument);
BUNDLE.checkArgumentPrintf(!argument.getPath().endsWith("/"),
"uriChecks.endingSlash", argument);
}
};
smileatom commented
Will this be released soon, I need this.....
baurchanu commented
Released in 1.2.14. Should be closed