[
https://issues.apache.org/jira/browse/WW-5526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart resolved WW-5526.
-------------------------------
Resolution: Fixed
> 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.0
> Reporter: [email protected]
> Priority: Major
> Fix For: 7.0.2, 6.7.2
>
> Time Spent: 0.5h
> 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)