You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/10/12 13:24:20 UTC

[jira] [Commented] (WW-4436) NullPointerException in ParametersInterceptor.isAcceptableValue

    [ https://issues.apache.org/jira/browse/WW-4436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14952981#comment-14952981 ] 

Hudson commented on WW-4436:
----------------------------

SUCCESS: Integrated in Struts-JDK7-master #371 (See [https://builds.apache.org/job/Struts-JDK7-master/371/])
WW-4436 Fixes NPE and uses String.valueOf() instead of .toString() (lukaszlenart: rev 2bea99e96b448585caa0080ac1dc5faa1db85826)
* xwork-core/src/main/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java


> NullPointerException in ParametersInterceptor.isAcceptableValue
> ---------------------------------------------------------------
>
>                 Key: WW-4436
>                 URL: https://issues.apache.org/jira/browse/WW-4436
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.3.20
>            Reporter: Mitth'raw'nuruodo
>            Assignee: Lukasz Lenart
>              Labels: easyfix
>             Fix For: 2.3.24
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)