Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
5.0.11
-
None
Description
If a property is null and that property is value encoded (perhaps due to a RadioGroup), then an NPE occurs:
- sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:36)
- sun.reflect.UnsafeObjectFieldAccessorImpl.get(UnsafeObjectFieldAccessorImpl.java:18)
- java.lang.reflect.Field.get(Field.java:357)
- org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java:32)
- org.apache.tapestry.internal.hibernate.HibernateEntityValueEncoder.toClient(HibernateEntityValueEncoder.java:46)
- org.apache.tapestry.corelib.components.RadioGroup.setupRender(RadioGroup.java:146)
- org.apache.tapestry.corelib.components.RadioGroup.setupRender(RadioGroup.java)
The ValueEncoder should check for null, and return null.