Skip to content

Commit c6efb9e

Browse files
committed
Fix NPE [release]
1 parent ac7140f commit c6efb9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/io/xpipe/app/browser/OpenFileSystemModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public Optional<String> cdOrRetry(String path, boolean allowCommands) {
158158
TerminalHelper.open(adjustedPath, cmd);
159159
}
160160
});
161-
return Optional.of(currentPath.get());
161+
return Optional.ofNullable(currentPath.get());
162162
}
163163

164164
// Evaluate optional links

0 commit comments

Comments
 (0)