Skip to content

Commit

Permalink
Don't set value in PageSessionResolver if base == null
Browse files Browse the repository at this point in the history
Signed-off-by:Ondro Mihalyi <mihalyi@omnifish.ee>
  • Loading branch information
OndroMih committed May 26, 2023
1 parent 9eb2f0f commit f6b3486
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,13 @@ public Class<?> getType(ELContext elContext, Object base, Object property) {

@Override
public void setValue(ELContext elContext, Object base, Object property, Object value) {
checkPropertyFound(base, property);
if (base != null) {
return;
}

if (property == null) {
throw new PropertyNotFoundException();
}

FacesContext facesContext = (FacesContext) elContext.getContext(FacesContext.class);
UIViewRoot viewRoot = facesContext.getViewRoot();
Expand Down

0 comments on commit f6b3486

Please sign in to comment.