Details
Description
When running component-showcase with state saving turned on reloading the page after clicking any of the command links at least once I get the
following exception:
java.lang.NullPointerException
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:399)
com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:158)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
.........
The stack trace shows that when D2DViewHandler.renderResponse is invoked
the ViewRoot is null.
following exception:
java.lang.NullPointerException
com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:399)
com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:158)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17)
.........
The stack trace shows that when D2DViewHandler.renderResponse is invoked
the ViewRoot is null.
Don't skip restore view phase on page reload when state saving is enabled.