You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 20, 2021. It is now read-only.
Seems like the contructor for StateHolderSaver is not null safe?
I got a NullPointerException in a table when the state should be saved.
Location in code where the constructors i called - UIComponentBase, method saveAttachedState, row 1175```
...
resultList.add(new StateHolderSaver(context, value));
...
In my case the 'value' above is null so that StateHolderSaver constructor will then throw a NullPointerException since the code invokes toSave.getClass().getName(). Se below:```
....
public StateHolderSaver(FacesContext context, Object toSave) {
this.className = toSave.getClass().getName();
....
}
This must be a very common use case (that a 'value' is null to be persisted/restored). Is it my code that´s using the StateHolderSaver in a special way or is this a new bug in 2.1.12?