Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4184

NullPointerException in markRenderedResources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.0-beta
    • 2.3.0
    • JSR-372
    • None

    Description

      The following exception can occur:

      at org.apache.myfaces.view.facelets.util.FaceletsViewDeclarationLanguageUtils.markRenderedResources(FaceletsViewDeclarationLanguageUtils.java:116)
      at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.restoreView(FaceletViewDeclarationLanguage.java:2157)
      at org.apache.myfaces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:338)
      at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:168)
      at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:195)
      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:142)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:204)

      This happens when the view is null, which can happen for a variety of reasons, for example if you drive a request to a page, let the session timeout and then click on a ajaxified button we would get the NPE rather than a ViewExpiredException. The change is trivial I'll upload a patch.

      Attachments

        1. MYFACES-4184.patch
          0.9 kB
          Paul Nicolucci

        Activity

          People

            paul.nicolucci Paul Nicolucci
            paul.nicolucci Paul Nicolucci
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: