You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/12/23 21:55:13 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=14257518#comment-14257518 ] 

ASF subversion and git services commented on WW-4436:
-----------------------------------------------------

Commit 2bea99e96b448585caa0080ac1dc5faa1db85826 in struts's branch refs/heads/develop from [~lukaszlenart]
[ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=2bea99e ]

WW-4436 Fixes NPE and uses String.valueOf() instead of .toString()


> 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
>              Labels: easyfix
>             Fix For: 2.3.21
>
>   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)