Skip to content

Commit

Permalink
Fix #5220: NPE surfaced by EmptyStringToNullELResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
BalusC committed May 13, 2023
1 parent 63e6bef commit a633a96
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions impl/src/main/java/com/sun/faces/application/SharedUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

package com.sun.faces.application;

import javax.faces.context.FacesContext;
import javax.faces.application.Application;

import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.faces.application.Application;
import javax.faces.context.FacesContext;

class SharedUtils {

Expand Down Expand Up @@ -77,7 +77,9 @@ static List<String> evaluateExpressions(FacesContext context, List<String> value
if (isExpression(value)) {
value = app.evaluateExpressionGet(context, value, String.class);
}
ret.add(value);
if (value != null) {
ret.add(value);
}
}
}

Expand Down

0 comments on commit a633a96

Please sign in to comment.