ignore empty arguments
This commit is contained in:
parent
892e56a246
commit
89a48c26a1
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue