[ https://issues.apache.org/jira/browse/WW-5451?focusedWorklogId=928179&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-928179 ]
ASF GitHub Bot logged work on WW-5451: -------------------------------------- Author: ASF GitHub Bot Created on: 31/Jul/24 15:09 Start Date: 31/Jul/24 15:09 Worklog Time Spent: 10m Work Description: sonarcloud[bot] commented on PR #1008: URL: https://github.com/apache/struts/pull/1008#issuecomment-2260753569 ## [](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1008) **Quality Gate failed** Failed conditions  [10 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=1008&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  [31.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=1008&metric=new_coverage&view=list) (required ≥ 80%)  [3.9% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=1008&metric=new_duplicated_lines_density&view=list) (required ≤ 3%)  [E Security Rating on New Code](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1008) (required ≥ A)  [E Reliability Rating on New Code](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1008) (required ≥ A) [See analysis details on SonarCloud](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1008) ##  Catch issues before they fail your Quality Gate with our IDE extension  [SonarLint](https://www.sonarsource.com/products/sonarlint/features/connected-mode/?referrer=pull-request) Issue Time Tracking ------------------- Worklog Id: (was: 928179) Time Spent: 0.5h (was: 20m) > NullPointerException when <s:iterator> value array contains a null in the > first entry > ------------------------------------------------------------------------------------- > > Key: WW-5451 > URL: https://issues.apache.org/jira/browse/WW-5451 > Project: Struts 2 > Issue Type: Bug > Affects Versions: 6.4.0 > Reporter: Jon Pulice > Priority: Minor > Fix For: 6.7.0 > > Time Spent: 0.5h > Remaining Estimate: 0h > > When the first entry in an array contains a null value, and that array is > used as the source for an <s:iterator> tag, a NullPointerException is thrown. > This exception did not occur in prior versions of Struts 6.x > Exception: > > {code:java} > ERROR org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler - Exception > occurred during processing request: null > java.lang.NullPointerException: null > at > org.apache.struts2.components.IteratorComponent.start(IteratorComponent.java:309) > ~[struts2-core-6.4.0.jar:6.4.0] > at > org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:51) > ~[struts2-core-6.4.0.jar:6.4.0] > ...{code} > > > A trivial example would be this tag: > {code:java} > <s:iterator value="pages"> > ... > </s:iterator>{code} > and Action: > > {code:java} > public class TestAction extends ActionSupport { > private Object[] pages = null; > > public String prompt() throws Exception { > pages = new Object[10]; > return SUCCESS; > } > } > {code} > > -- This message was sent by Atlassian Jira (v8.20.10#820010)