Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Commit

Permalink
fixed NPE JBSEAM-4816
Browse files Browse the repository at this point in the history
  • Loading branch information
mareknovotny committed Jun 3, 2011
1 parent 890d450 commit 8c67a2a
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -306,6 +306,12 @@ public static Expressions instance()

private static void checkELExpression(final String expression)
{

if (expression == null)
{
return;
}

for (int index = 0; blacklist.size() > index; index++)
{
if ( expression.contains(blacklist.get(index)) ) {
Expand All @@ -314,7 +320,7 @@ private static void checkELExpression(final String expression)
}

// for any case blacklist is not provided this is definitely not permitted
if ( expression.contains(".getClass()") )
if ( expression.contains(".getClass()") || expression.contains(".class()") )
{
throw new IllegalArgumentException("This EL expression is not allowed!");
}
Expand Down

0 comments on commit 8c67a2a

Please sign in to comment.