You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Markus Dreher (JIRA)" <de...@myfaces.apache.org> on 2011/03/07 15:32:59 UTC

[jira] Updated: (TRINIDAD-2051) NPE in BAseChangeManager

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

Markus Dreher updated TRINIDAD-2051:
------------------------------------

    Status: Patch Available  (was: Open)

> NPE in BAseChangeManager
> ------------------------
>
>                 Key: TRINIDAD-2051
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2051
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.2.14-core 
>         Environment: 3.6, facelets 1.1.15, jsf-ri 1.2._12, trinidad 1.2.14
>            Reporter: Markus Dreher
>
> After Updateing from Trinidad 1.2.13 to 1.2.14 I get the following Exception
> java.lang.NullPointerException
> 	at org.apache.myfaces.trinidad.change.BaseChangeManager.addComponentChange(BaseChangeManager.java:58)
> 	at org.apache.myfaces.trinidad.change.SessionChangeManager.addComponentChange(SessionChangeManager.java:64)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.addAttributeChange(UIXComponentBase.java:1165)
> 	at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:266)
> 	at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:153)
> 	at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:271)
> 	at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
> 	at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:755)
> 	at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
> 	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
> 	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
> I have a tr:table with rowSelection=multiple. When I select a row and navigate to another page i get the mentioned exception.
> it seems that this problem was introduced with TRINIDAD-1935.
> Because when navigating to another page there is a new UIViewRoot so parent results in null.
> A check for null solves the problem
>     while (parent != null && parent != root)
>     {
>      ......
>     }
> The problem also exists in trinidad-2.0.0-beta-2

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira