NullPointerException to an ELException.
I still need to investigate where the NPE came from,
but simply casting seems unsafe in any case.
Use a cast if possible and recreate exception
otherwise.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@696716
13f79535-47bb-0310-9956-
ffa450edef68
try {
node.accept(this);
} catch (Exception e) {
- throw (ELException) e;
+ if (e instanceof ELException) {
+ throw (ELException) e;
+ } else {
+ throw (new ELException(e));
+ }
}
if (this.fnMapper instanceof FunctionMapperFactory) {
this.fnMapper = ((FunctionMapperFactory) this.fnMapper).create();