Null relationships cause an NPE inside Hibernate when being value encoded by
RadioGroup
---------------------------------------------------------------------------------------
Key: TAPESTRY-2260
URL: https://issues.apache.org/jira/browse/TAPESTRY-2260
Project: Tapestry
Issue Type: Bug
Components: tapestry-hibernate
Affects Versions: 5.0.11
Reporter: Howard M. Lewis Ship
Priority: Critical
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]