Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2327

NullPointerException in FacesRequestProcessor.prcocessActionPerform

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Nightly Build
    • None
    • None
    • Operating System: All
      Platform: All
    • 32959

    Description

      There is a bug (line 241-242) in FacesRequestProcessor.prcocessActionPerform
      that will result in a NullPointerException if the result returned from method
      processActionPerform is null and if debug is enabled. The version I refer to is
      the nightly build as at struts-faces-20050104.tar

      protected ActionForward processActionPerform(HttpServletRequest request,
      HttpServletResponse response,
      Action action,
      ActionForm form,
      ActionMapping mapping)
      throws IOException, ServletException {

      if (log.isTraceEnabled())

      { log.trace("Performing standard action perform"); }

      ActionForward result =
      super.processActionPerform(request, response, action,
      form, mapping);
      if (log.isDebugEnabled())

      { // ### BUG: result can be null ### log.debug("Standard action perform returned " + result.getPath() + " forward path"); }

      return (result);

      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            hchar Hanson Char
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: