From 70c076eb3a66551eef0299a2da97197996c8303a Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 12 Jan 2017 00:58:59 +0800 Subject: [PATCH] Don't ask to unlock filesystem root / --- source/net/filebot/mac/DropToUnlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/mac/DropToUnlock.java b/source/net/filebot/mac/DropToUnlock.java index 59ec6c1b..2fa1e2bf 100644 --- a/source/net/filebot/mac/DropToUnlock.java +++ b/source/net/filebot/mac/DropToUnlock.java @@ -114,7 +114,7 @@ public class DropToUnlock extends JList { } catch (Exception e) { return null; } - }).filter(f -> f != null && isLockedFolder(f)).sorted().distinct().collect(Collectors.toList()); + }).filter(f -> f != null && !f.getName().isEmpty() && isLockedFolder(f)).sorted().distinct().collect(Collectors.toList()); } public static boolean showUnlockFoldersDialog(Window owner, Collection files) {