-
Notifications
You must be signed in to change notification settings - Fork 58
NullPointerException in StateHolderSaver contructor #4092
Comments
Reported by acerhigh2015 |
Was assigned to ZhangXinyuan |
acerhigh2015 said:
Other types of attachedObject, Collections etc, seems to have sufficient null check and therefor will not showcase this bug. |
acerhigh2015 said: |
ren.zhijun.oracle said: |
acerhigh2015 said: |
acerhigh2015 said: |
acerhigh2015 said: |
ren.zhijun.oracle said: |
acerhigh2015 said: |
zhangxinyuan said: |
ren.zhijun.oracle said: |
acerhigh2015 said: Sorry, have no time to do that at the moment. If that it needed I will try o fix that next month. Else, it is an "obvious bug" and should be able to covered it with a "simple" junit test. Is it still needed with a test-war? |
This issue was imported from java.net JIRA JAVASERVERFACES-4088 |
https://github.com/javaserverfaces/mojarra/issues/4092 modified: jsf-tools/template-src/StateHolderSaver.java
pushed to 2.2.x jsf-tools/template-src/StateHolderSaver.java | 6 +++++- |
https://github.com/javaserverfaces/mojarra/issues/4092 modified: jsf-tools/template-src/StateHolderSaver.java
https://github.com/javaserverfaces/mojarra/issues/4092 modified: jsf-tools/template-src/StateHolderSaver.java
https://github.com/javaserverfaces/mojarra/issues/4092 Conflicts: jsf-tools/template-src/StateHolderSaver.java modified: jsf-tools/template-src/StateHolderSaver.java
Seems like the contructor for StateHolderSaver is not null safe?
I got a NullPointerException in a table when the state should be saved.
...
resultList.add(new StateHolderSaver(context, value));
...
....
public StateHolderSaver(FacesContext context, Object toSave) {
this.className = toSave.getClass().getName();
....
}
Environment
Mojarra 2.2.12, Primefaces 5.3
Affected Versions
[2.2.12]
The text was updated successfully, but these errors were encountered: