mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 22:09:47 -04:00
Fix NPE
This commit is contained in:
parent
ca155e2e9b
commit
6b70a50ba9
@ -66,9 +66,6 @@ public class ExpressionBindings extends AbstractMap<String, Object> implements B
|
|||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
// check InvocationTargetException cause
|
// check InvocationTargetException cause
|
||||||
if (e.getCause() instanceof NullPointerException) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
if (e.getCause() instanceof BindingException) {
|
if (e.getCause() instanceof BindingException) {
|
||||||
throw (BindingException) e.getCause();
|
throw (BindingException) e.getCause();
|
||||||
}
|
}
|
||||||
|
@ -1054,7 +1054,8 @@ public class MediaBindingBean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String getOriginalFileName(File file) {
|
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() {
|
private List<String> getKeywords() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user