We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b83205 commit 0bde6bdCopy full SHA for 0bde6bd
src/main/java/io/zenwave360/jsonrefparser/parser/Parser.java
@@ -42,7 +42,7 @@ public static void withResourceClassLoader(ClassLoader resourceClassLoader) {
42
}
43
44
public static ExtendedJsonContext parse(URI uri) throws IOException {
45
- if("classpath".contentEquals(uri.getScheme())) {
+ if(uri.getScheme() != null && "classpath".contentEquals(uri.getScheme())) {
46
try(var inputStream = resourceClassLoader.getResourceAsStream(uri.getPath().replaceFirst("^/", ""))) {
47
return parse(inputStream, uri);
48
0 commit comments