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

NullPointerException in ParametersInterceptor.isAcceptableValue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.20
    • 2.3.24
    • Core Interceptors
    • Patch

    Description

      ParametersInterceptor.isAcceptableValue (in XWork 2.3.20) fails to check whether array elements are null before calling toString on them, which can lead to NPE at line 365.

      A safer option would be to use String.valueOf instead.

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            thrawnca Mitth'raw'nuruodo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified