Skip to content

Commit

Permalink
fix: case parent file is null
Browse files Browse the repository at this point in the history
ymarcon committed Jan 25, 2025
1 parent c0d4668 commit 81b48ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -97,7 +97,7 @@ public Response getFileSystemRootDetails() throws IOException {
@NoAuthorization
public Response getFileDetails(@PathParam("path") String path) throws IOException {
FileObject file = resolveFileInFileSystem(path);
if (!file.getParent().isReadable() || !file.exists()) {
if (file.getParent() != null && !file.getParent().isReadable() || !file.exists()) {
return getPathNotExistResponse("/" + path);
}
if (file.getType() == FileType.FILE) {

0 comments on commit 81b48ff

Please sign in to comment.