diff --git a/source/net/filebot/cli/ArgumentBean.java b/source/net/filebot/cli/ArgumentBean.java index f09589a0..13588c78 100644 --- a/source/net/filebot/cli/ArgumentBean.java +++ b/source/net/filebot/cli/ArgumentBean.java @@ -148,10 +148,14 @@ public class ArgumentBean { // resolve given paths List files = new ArrayList(); - for (String argument : arguments) { - File file = new File(argument); + for (String it : arguments) { + // ignore empty arguments + if (it.trim().isEmpty()) + continue; // resolve relative paths + File file = new File(it); + try { file = file.getCanonicalFile(); } catch (Exception e) {