Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3406

NullPointer in JSF plug-in

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.8.1
    • 2.3.14
    • Other
    • Windows XP, Tomcat 5

    Description

      Am getting a NullPointerException in the JSF Plugin StrutsNavigationHandler, line 66.
      >> ActionConfig config = ctx.getActionInvocation().getProxy().getConfig();

      Debugging, it's ctx.getActionInvocation() that is returning null.

      Looking at line 63 I think I see the bug:
      if (ctx == null && ctx.getActionInvocation() == null) {

      Surely that should be || instead of &&

      Some context: I have an existing JSF action. I am trying to run it backed by struts, maintaining all the JSF beans and navigation without editing - which means that it'll be mostly backed by stub-type struts actions.

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            alan.mcl@gmail.com Alan McLachlan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: