Uploaded image for project: 'MyFaces CODI'
  1. MyFaces CODI
  2. EXTCDI-166

Handle situation for viewRoot = null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9.4
    • 0.9.5
    • JEE-JSF20-Module
    • None
    • myfaces trunk, codi trunk

    Description

      With example from http://www.nfjsone.com/blog/ed_burns/2009/09/dealing_gracefully_with_viewexpiredexception_in_jsf2 and a coding typo like:
      nav.handleNavigation(fc, null, "/nonExistentView.xhtml");

      you get facesContext.viewRoot = null even in render_response phase

      codi throw NPEs in such case, see attached patch for details.

      Attachments

        1. EXTCDI-166.patch
          5 kB
          Martin Kočí

        Activity

          People

            gpetracek Gerhard Petracek
            markoc50 Martin Kočí
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: