diff --git a/dsm/src/main/java/com/github/mfatihercik/dsb/resource/FileSystemResourceAccessor.java b/dsm/src/main/java/com/github/mfatihercik/dsb/resource/FileSystemResourceAccessor.java index 99cf98c..0e2881c 100644 --- a/dsm/src/main/java/com/github/mfatihercik/dsb/resource/FileSystemResourceAccessor.java +++ b/dsm/src/main/java/com/github/mfatihercik/dsb/resource/FileSystemResourceAccessor.java @@ -3,6 +3,7 @@ import java.io.*; import java.net.URISyntaxException; import java.net.URL; +import java.net.URI; import java.net.URLClassLoader; import java.util.HashSet; import java.util.Set; @@ -51,7 +52,11 @@ protected void init() { @Override protected void addRootPath(URL path) { try { - File pathAsFile = new File(path.toURI()); + URI uri = path.toURI(); + if(uri.isOpaque()) { + return; + } + File pathAsFile = new File(uri); for (File fileSystemRoot : File.listRoots()) { if (pathAsFile.equals(fileSystemRoot)) { //don't include root