diff --git a/api/pom.xml b/api/pom.xml index 82b613a..148a67e 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -30,7 +30,7 @@ jakarta.el jakarta.el-api - 6.0.0 + 6.0.1 jar Jakarta Expression Language API diff --git a/api/src/main/java/jakarta/el/BeanELResolver.java b/api/src/main/java/jakarta/el/BeanELResolver.java index 3b32606..529c65f 100644 --- a/api/src/main/java/jakarta/el/BeanELResolver.java +++ b/api/src/main/java/jakarta/el/BeanELResolver.java @@ -1,4 +1,5 @@ /* + * Copyright (c) 2024 Contributors to the Eclipse Foundation. * Copyright (c) 1997, 2023 Oracle and/or its affiliates and others. * All rights reserved. * Copyright 2004 The Apache Software Foundation @@ -448,11 +449,13 @@ public Object invoke(ELContext context, Object base, Object methodName, Class Method method = ELUtil.findMethod(base.getClass(), base, methodName.toString(), paramTypes, params, false); - for (Object param : params) { - // If the parameters is a LambdaExpression, set the ELContext - // for its evaluation - if (param instanceof LambdaExpression) { - ((LambdaExpression) param).setELContext(context); + if (params != null) { + for (Object param : params) { + // If the parameters is a LambdaExpression, set the ELContext + // for its evaluation + if (param instanceof LambdaExpression) { + ((LambdaExpression) param).setELContext(context); + } } }