* improved error reporting

This commit is contained in:
Reinhard Pointner 2014-08-11 07:12:33 +00:00
parent ac9fe6ec9d
commit 3ea880be66
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,9 @@ 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();
}