Fix ClassCastException when we try to cast a
authorrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 18 Sep 2008 17:08:10 +0000 (17:08 +0000)
committerrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 18 Sep 2008 17:08:10 +0000 (17:08 +0000)
commit5d5423ea8116e39742c0ce2a24a3cea80766eca6
tree1b2222a93fedac2c6bffcf4c8d5c8c658b7e58dc
parent1bd379ddb470e0a4ea4920e4cb90edd6c2d7a4a8
Fix ClassCastException when we try to cast a

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
java/org/apache/el/lang/ExpressionBuilder.java