Fix for blank paths in file browser

This commit is contained in:
crschnick 2024-10-13 04:24:10 +00:00
parent 593e0eb7b7
commit 9dc5cf8048

View file

@ -43,6 +43,7 @@ public class BrowserOverviewComp extends SimpleComp {
var commonPlatform = FXCollections.<FileEntry>observableArrayList(); var commonPlatform = FXCollections.<FileEntry>observableArrayList();
ThreadHelper.runFailableAsync(() -> { ThreadHelper.runFailableAsync(() -> {
var common = sc.getOsType().determineInterestingPaths(sc).stream() var common = sc.getOsType().determineInterestingPaths(sc).stream()
.filter(s -> !s.isBlank())
.map(s -> FileEntry.ofDirectory(model.getFileSystem(), s)) .map(s -> FileEntry.ofDirectory(model.getFileSystem(), s))
.filter(entry -> { .filter(entry -> {
try { try {