Skip to content

Commit 482e060

Browse files
committed
[bugfix] Address SonarCloud Static Analysis issues
1 parent 6e42b27 commit 482e060

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exist-core/src/main/java/org/exist/source/SourceFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private static String firstPathSegment(final String path) {
152152
}
153153

154154
private static Source getSource_fromClasspath(final String contextPath, final String location) throws IOException {
155-
if (location.startsWith(ClassLoaderSource.PROTOCOL)) {
155+
if (contextPath == null || location.startsWith(ClassLoaderSource.PROTOCOL)) {
156156
return new ClassLoaderSource(location);
157157
}
158158

0 commit comments

Comments
 (0)