|
From: Arne L. (JIRA) <no...@at...> - 2006-01-03 18:09:22
|
AbstractForm throws NullPointerException in setFormObject if no FormModel is set.
---------------------------------------------------------------------------------
Key: RCP-255
URL: http://opensource.atlassian.com/projects/spring/browse/RCP-255
Project: Spring Framework Rich Client Project
Type: Improvement
Reporter: Arne Limburg
Assigned to: Oliver Hutchison
Priority: Minor
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://opensource.atlassian.com/projects/spring/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|