eclipse-ee4j / mojarra

Mojarra, a Jakarta Faces implementation
Other
160 stars 109 forks source link

Mojarra issue 5190 merged into 4 0 #5193

Closed BalusC closed 1 year ago

BalusC commented 1 year ago

https://github.com/eclipse-ee4j/mojarra/issues/5190

pizzi80 commented 1 year ago

I had to use the following check inside EmptyStringToNullELResolver

if (    value == null &&
                String.class == targetType &&
                context instanceof org.apache.el.lang.EvaluationContext
    ) {

otherwise EL produce NPE during String concat, for example:

{'hello'.concat(null)}