ignore empty arguments

This commit is contained in:
Reinhard Pointner 2016-10-04 23:47:10 +08:00
parent 892e56a246
commit 89a48c26a1
1 changed files with 6 additions and 2 deletions

View File

@ -148,10 +148,14 @@ public class ArgumentBean {
// resolve given paths
List<File> files = new ArrayList<File>();
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) {