Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.3.5
-
None
-
All
Description
This bug is from regression caused by the fix for STR-2809.
Given the JSP with:
<tiles:importAttribute name="doesntExist" ignore="true"/>
The following exception occurs:
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:393)
at org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.java:238)
at org.apache.struts.tiles.taglib.ImportAttributeTag.doStartTag(ImportAttributeTag.java:167)
This is due to the ImportAttributeTag class incorrectly calling pageContext.setAttribute with a null value. This call was previously unreachable prior to the fix for STR-2809 which eliminated the SKIP_BODY returns when ignore=true.
The behavior of the PageContext implementation is consistent with the Servlet 2.2 Specification: