diff --git a/source/net/filebot/ui/transfer/FileTransferable.java b/source/net/filebot/ui/transfer/FileTransferable.java index 3b20592c..1c39afa1 100644 --- a/source/net/filebot/ui/transfer/FileTransferable.java +++ b/source/net/filebot/ui/transfer/FileTransferable.java @@ -91,7 +91,12 @@ public class FileTransferable implements Transferable { public static List getFilesFromTransferable(Transferable tr) throws IOException, UnsupportedFlavorException { if (tr.isDataFlavorSupported(DataFlavor.javaFileListFlavor) && !useGVFS()) { // file list flavor - return sortByUniquePath((List) tr.getTransferData(DataFlavor.javaFileListFlavor)); // FORCE NATURAL FILE ORDER + Object transferable = tr.getTransferData(DataFlavor.javaFileListFlavor); + if (transferable instanceof List) { + return sortByUniquePath((List) transferable); // FORCE NATURAL FILE ORDER + } else { + return new ArrayList(0); + } } if (tr.isDataFlavorSupported(FileTransferable.uriListFlavor)) {