struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4436) NullPointerException in ParametersInterceptor.isAcceptableValue
Date Wed, 31 Dec 2014 17:33:17 GMT

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

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

FAILURE: Integrated in Struts-JDK6-master #901 (See [https://builds.apache.org/job/Struts-JDK6-master/901/])
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.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)

Mime
View raw message