[ https://issues.apache.org/jira/browse/MYFACES-3119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027069#comment-13027069 ]
Matt Benson commented on MYFACES-3119: -------------------------------------- That's very possible, as Jakob himself called it an "ugly" patch. Without being very familiar with the code, I just applied the patch that was available to see if it worked for me. > NullPointerException in > UIComponentBase.restoreDeltaSystemEventListenerClassMap() when UIViewRoot > subscribed to PostAddToViewEvent > ---------------------------------------------------------------------------------------------------------------------------------- > > Key: MYFACES-3119 > URL: https://issues.apache.org/jira/browse/MYFACES-3119 > Project: MyFaces Core > Issue Type: Bug > Components: General > Affects Versions: 2.0.5 > Reporter: Matt Benson > Attachments: mf3119.patch.txt, mf3119.tar.gz, mf3119.tar.gz > > > As reported in MYFACES-2466 (whose summary I copied here), I am encountering > the NPE on the access of holderList in what is currently line 1917 of > UIComponentBase whenever I use a ComponentSystemEventListener on UIViewRoot. > Specifically I am subscribing to PreRenderViewEvent and the problem occurs > restoring the view regardless of whether I unsubscribe the listener e.g. > after RENDER_RESPONSE. > More information: > _systemEventListenerClassMap is null when the method is called, thus the map > is reinstantiated so of course the value looked up and assigned to holderList > is null. > Now I have to go use Mojarra until this is fixed. :( -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira