Skip to content

Commit 78d2dcf

Browse files
cmhulbertbogovicj
authored andcommitted
fix: root patch may be null, get separator from fsPath
Signed-off-by: Caleb Hulbert <cmhulbert@gmail.com>
1 parent 8790058 commit 78d2dcf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/janelia/saalfeldlab/n5/FileSystemKeyValueAccess.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public String[] components(final String path) {
212212

213213
final Path fsPath = Paths.get(path);
214214
final Path root = fsPath.getRoot();
215-
String separator = root.getFileSystem().getSeparator();
215+
final String separator = fsPath.getFileSystem().getSeparator();
216216
final String[] components;
217217
int o;
218218
if (root == null) {

0 commit comments

Comments
 (0)