|
From: Lieven D. (JIRA) <no...@sp...> - 2008-10-09 20:23:20
|
[ http://jira.springframework.org/browse/RCP-255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lieven Doclo updated RCP-255:
-----------------------------
Fix Version/s: 1.x
> AbstractForm throws NullPointerException in setFormObject if no FormModel is set.
> ---------------------------------------------------------------------------------
>
> Key: RCP-255
> URL: http://jira.springframework.org/browse/RCP-255
> Project: Spring Framework Rich Client Project
> Issue Type: Improvement
> Reporter: Arne Limburg
> Assignee: Oliver Hutchison
> Priority: Minor
> Fix For: 1.x
>
>
> AbstractForm throws NullPointerException in setFormObject if no FormModel is set. It would be an improvement if a FormModel would be created in such case with the help of the FormModelHelper, like it is done in the constructor corresponding constructor.
> An implementation could look like:
> public void setFormObject(Object formObject) {
> if (formModel == null)
> setFormModel(FormModelHelper.createFormModel(formObject));
> else
> formModel.setFormObject(formObject);
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|