From issues-return-19259-apmail-struts-issues-archive=struts.apache.org@struts.apache.org Thu Dec 13 11:20:13 2012 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 9C674D447 for ; Thu, 13 Dec 2012 11:20:13 +0000 (UTC) Received: (qmail 65529 invoked by uid 500); 13 Dec 2012 11:20:13 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 65501 invoked by uid 500); 13 Dec 2012 11:20: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 65463 invoked by uid 99); 13 Dec 2012 11:20:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2012 11:20:12 +0000 Date: Thu, 13 Dec 2012 11:20:12 +0000 (UTC) From: "Hudson (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-3942) NullPointerException in IteratorComponent 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-3942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13530905#comment-13530905 ] Hudson commented on WW-3942: ---------------------------- Integrated in Struts2-JDK5 #20 (See [https://builds.apache.org/job/Struts2-JDK5/20/]) WW-3942 solves NPE in iterator tag (Revision 1421210) Result = SUCCESS lukaszlenart : Files : * /struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/IteratorComponent.java * /struts/struts2/trunk/core/src/test/java/org/apache/struts2/components/IteratorComponentTest.java > NullPointerException in IteratorComponent > ----------------------------------------- > > Key: WW-3942 > URL: https://issues.apache.org/jira/browse/WW-3942 > Project: Struts 2 > Issue Type: Bug > Affects Versions: 2.3.7 > Reporter: Charles Galpin > Assignee: Lukasz Lenart > Fix For: 2.3.8 > > > We get a NullPointerException from line 383 of IteratorComponent.java. The line is currently > return value != null ? values.get(nextIndex) : nextIndex; > and I believe it should be > return values != null ? values.get(nextIndex) : nextIndex; > values not value. > Exception below. > {noformat} > Exception created : java.lang.NullPointerException > at org.apache.struts2.components.IteratorComponent$CounterIterator.next(IteratorComponent.java:383) > at org.apache.struts2.components.IteratorComponent.start(IteratorComponent.java:302) > at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:53) > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira