You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/03/14 19:56:27 UTC

[jira] Assigned: (TAPESTRY-2260) Null relationships cause an NPE inside Hibernate when being value encoded by RadioGroup

     [ https://issues.apache.org/jira/browse/TAPESTRY-2260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAPESTRY-2260:
----------------------------------------------

    Assignee: Howard M. Lewis Ship

> 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
>            Assignee: 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org