PDA

View Full Version : NullValueInNestedPathException help


sboulay
Jan 28th, 2005, 04:21 PM
What is happening is I have employee object with a reference to address object , since it is possible that the employee does not have an address everytime the object binds to the form I get this error cause the address object is null (using spring:bind with expression path="employee.address.state") What is the way around this ? When I am creating employee I create the form backing object with a employee and a blank address object, works fine but not sure how to handle the other way around.