NullPointerException in
UIComponentBase.restoreDeltaSystemEventListenerClassMap() when UIViewRoot
subscribed to PostAddToViewEvent
----------------------------------------------------------------------------------------------------------------------------------
Key: MYFACES-2466
URL: https://issues.apache.org/jira/browse/MYFACES-2466
Project: MyFaces Core
Issue Type: Bug
Components: JSR-314
Affects Versions: 2.0.0-alpha-2
Reporter: Jakob Korherr
java.lang.NullPointerException
at
javax.faces.component.UIComponentBase.restoreDeltaSystemEventListenerClassMap(UIComponentBase.java:1770)
at
javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1611)
at javax.faces.component.UIViewRoot.restoreState(UIViewRoot.java:1161)
at
org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.restoreStateFromMap(DefaultFaceletsStateManagementStrategy.java:379)
at
org.apache.myfaces.view.facelets.DefaultFaceletsStateManagementStrategy.restoreView(DefaultFaceletsStateManagementStrategy.java:181)
at
org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:388)
at
org.apache.myfaces.view.ViewDeclarationLanguageBase.restoreView(ViewDeclarationLanguageBase.java:106)
at
org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.restoreView(FaceletViewDeclarationLanguage.java:972)
at
org.apache.myfaces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:231)
at
org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:106)
at
org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:129)
at
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:85)
at
javax.faces.webapp.FacesServlet._handleStandardRequest(FacesServlet.java:453)
... 13 more
In this scenario savedObject is an instance of _AttachedDeltaWrapper, but
_systemEventListenerClassMap is empty and so it returns null for
get(entry.getKey()). Thus a NullPointerException is thrown in the following
line (UIComponentBase.java:1770).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.