1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00
This commit is contained in:
Reinhard Pointner 2016-03-27 22:16:20 +00:00
parent ca155e2e9b
commit 6b70a50ba9
2 changed files with 2 additions and 4 deletions

View File

@ -66,9 +66,6 @@ public class ExpressionBindings extends AbstractMap<String, Object> implements B
}
} catch (Exception e) {
// check InvocationTargetException cause
if (e.getCause() instanceof NullPointerException) {
return null;
}
if (e.getCause() instanceof BindingException) {
throw (BindingException) e.getCause();
}

View File

@ -1054,7 +1054,8 @@ public class MediaBindingBean {
}
private String getOriginalFileName(File file) {
return getNameWithoutExtension(xattr.getOriginalName(file));
String name = xattr.getOriginalName(file);
return name == null ? null : getNameWithoutExtension(name);
}
private List<String> getKeywords() {