Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EA7B89705 for ; Tue, 23 Dec 2014 20:55:13 +0000 (UTC) Received: (qmail 80510 invoked by uid 500); 23 Dec 2014 20:55:13 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 80479 invoked by uid 500); 23 Dec 2014 20:55:13 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 80468 invoked by uid 99); 23 Dec 2014 20:55:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Dec 2014 20:55:13 +0000 Date: Tue, 23 Dec 2014 20:55:13 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4436) NullPointerException in ParametersInterceptor.isAcceptableValue MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)