[ https://issues.apache.org/jira/browse/WW-5526?focusedWorklogId=955226&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-955226 ]
ASF GitHub Bot logged work on WW-5526: -------------------------------------- Author: ASF GitHub Bot Created on: 03/Feb/25 14:12 Start Date: 03/Feb/25 14:12 Worklog Time Spent: 10m Work Description: kusalk merged PR #1209: URL: https://github.com/apache/struts/pull/1209 Issue Time Tracking ------------------- Worklog Id: (was: 955226) Time Spent: 20m (was: 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: 20m > 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)