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

NullPointerException in ParametersInterceptor.isAcceptableValue

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.20
    • Fix Version/s: 2.3.24
    • Component/s: Core Interceptors
    • Labels:
    • Flags:
      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

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              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