mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-07-14 18:55:58 +12:00
Fix possible NPE
This commit is contained in:
parent
286c573ebd
commit
888fa3d92b
|
@ -100,6 +100,10 @@ public final class OpenFileSystemModel {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fileSystem == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return new FileSystem.FileEntry(fileSystem, currentPath.get(), null, false, false, 0, null, FileKind.DIRECTORY);
|
return new FileSystem.FileEntry(fileSystem, currentPath.get(), null, false, false, 0, null, FileKind.DIRECTORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue