[ https://issues.apache.org/jira/browse/WW-5526?focusedWorklogId=955224&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-955224 ]
ASF GitHub Bot logged work on WW-5526: -------------------------------------- Author: ASF GitHub Bot Created on: 03/Feb/25 14:09 Start Date: 03/Feb/25 14:09 Worklog Time Spent: 10m Work Description: sonarqubecloud[bot] commented on PR #1210: URL: https://github.com/apache/struts/pull/1210#issuecomment-2631109580 ## [](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1210) **Quality Gate failed** Failed conditions  [22 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=1210&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  [42.2% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=1210&metric=new_coverage&view=list) (required ≥ 80%)  [3.4% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=1210&metric=new_duplicated_lines_density&view=list) (required ≤ 3%)  [E Reliability Rating on New Code](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1210) (required ≥ A)  [E Security Rating on New Code](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1210) (required ≥ A) [See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=1210) ##  Catch issues before they fail your Quality Gate with our IDE extension  [SonarQube for IDE](https://www.sonarsource.com/products/sonarlint/features/connected-mode/?referrer=pull-request) Issue Time Tracking ------------------- Worklog Id: (was: 955224) Remaining Estimate: 0h Time Spent: 10m > attribute lookup against PageContext leads to NPE > ------------------------------------------------- > > Key: WW-5526 > URL: https://issues.apache.org/jira/browse/WW-5526 > Project: Struts 2 > Issue Type: Bug > Components: Core Tags > Affects Versions: 6.7.1, 7.0.1 > Reporter: michael.hinten...@silbergrau.com > Priority: Major > Fix For: 7.0.2, 6.7.2 > > Time Spent: 10m > Remaining Estimate: 0h > > {{<s:include/>}} or {{<jsp:include/>}} tag before an closing tag will > "destroy" the page context which leads to an NPE > {noformat} > java.lang.NullPointerException: Cannot invoke > "javax.servlet.ServletRequest.getAttribute(String)" because "this.request" is > null > at > org.apache.jasper.runtime.PageContextImpl.findAttribute(PageContextImpl.java:341) > ~[jasper.jar:9.0.96] > at org.apache.struts2.dispatcher.AttributeMap.get(AttributeMap.java:102) > ~[struts2-core-6.7.1.jar:6.7.1]{color} > at org.apache.struts2.components.UIBean.getTheme(UIBean.java:646) > ~[struts2-core-6.7.1.jar:6.7.1]{color} > at org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:663) > ~[struts2-core-6.7.1.jar:6.7.1] > at org.apache.struts2.components.UIBean.end(UIBean.java:558) > ~[struts2-core-6.7.1.jar:6.7.1] > at > org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:38) > ~[struts2-core-6.7.1.jar:6.7.1] > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)