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) {
|
||||
// check InvocationTargetException cause
|
||||
if (e.getCause() instanceof NullPointerException) {
|
||||
return null;
|
||||
}
|
||||
if (e.getCause() instanceof BindingException) {
|
||||
throw (BindingException) e.getCause();
|
||||
}
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user