michael.hinten...@silbergrau.com created WW-5526:
----------------------------------------------------

             Summary: 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: 7.0.1, 6.7.1
            Reporter: michael.hinten...@silbergrau.com


s:include or jsp:include tag before an closing tag will "destroy" the page 
context which leads to an NPE

 

+{color:#1b6acb}java.lang.NullPointerException{color}+{color:#000000}: Cannot 
invoke "javax.servlet.ServletRequest.getAttribute(String)" because 
"this.request" is null{color}

{color:#000000} at 
org.apache.jasper.runtime.PageContextImpl.findAttribute({color}+{color:#1b6acb}PageContextImpl.java:341{color}+{color:#000000})
 ~[jasper.jar:9.0.96]{color}

{color:#000000} at 
org.apache.struts2.dispatcher.AttributeMap.get({color}+{color:#1b6acb}AttributeMap.java:102{color}+{color:#000000})
 ~[struts2-core-6.7.1.jar:6.7.1]{color}

{color:#000000} at 
org.apache.struts2.components.UIBean.getTheme({color}+{color:#1b6acb}UIBean.java:646{color}+{color:#000000})
 ~[struts2-core-6.7.1.jar:6.7.1]{color}

{color:#000000} at 
org.apache.struts2.components.UIBean.evaluateParams({color}+{color:#1b6acb}UIBean.java:663{color}+{color:#000000})
 ~[struts2-core-6.7.1.jar:6.7.1]{color}

{color:#000000} at 
org.apache.struts2.components.UIBean.end({color}+{color:#1b6acb}UIBean.java:558{color}+{color:#000000})
 ~[struts2-core-6.7.1.jar:6.7.1]{color}

{color:#000000} at 
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag({color}+{color:#1b6acb}ComponentTagSupport.java:38{color}+{color:#000000})
 ~[struts2-core-6.7.1.jar:6.7.1]{color}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to