Dialog throws NullPointerException when tr:poll updates main page -----------------------------------------------------------------
Key: TRINIDAD-1112 URL: https://issues.apache.org/jira/browse/TRINIDAD-1112 Project: MyFaces Trinidad Issue Type: Bug Affects Versions: 1.0.8-core, 1.0.3-core Environment: I have demonstrated this problem in 1.0.3 and 1.0.8, I am using the RI and JBoss 4.0.5. Reporter: Nate Perkins Priority: Minor Fix For: 1.0.9-core I'm using 1.0.3 and I have 2 pages which both use the tr:poll on a main page and which both launch dialogs of some sort. The first page uses the 'normal' dialog setup of using an 'dialog:*' action and using a LaunchEvent to populate the pageflow scope with any data I need. The second page programmatically calls launchDialog(). In the first page, if I leave the dialog open and allow the tr:poll to update the main page and then attempt to perform an action on the dialog I get a NullPointerException. If I take the same steps with the second page it works with no problems. Is this a known bug or is there a recommended solution? Would an upgrade fix this? Here's the exception: Caused by: java.lang.NullPointerException at org.apache.myfaces.trinidadinternal.context.PageFlowScopeMap.discard(PageFlowScopeMap.java:341) at org.apache.myfaces.trinidadinternal.context.PageFlowScopeProviderImpl.popPageFlowScope(PageFlowScopeProviderImpl.java:106) at org.apache.myfaces.trinidadinternal.context.RequestContextImpl.returnFromDialog(RequestContextImpl.java:125) at com.gdc4s.muos.nms.planning.chainofcmd.backing.ManageNodeBb.cancel(ManageNodeBb.java:281) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126) ... 37 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.