Bug 7339

Summary: If a null value is passed to the name attribute of <c-rt:param> an NPE occurs
Product: Taglibs Reporter: Ryan Lubke <Ryan.Lubke>
Component: Standard TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: other   

Description Ryan Lubke 2002-03-21 23:39:28 UTC
given:

<c-rt:import url="import.jsp">
    <c-rt:param name='<%= null %>' value="value"/>
</c-rt:import>

Result:

java.lang.NullPointerException
	at
org.apache.taglibs.standard.tag.common.core.ParamSupport.doEndTag(ParamSupport.java:111)

Page 7-64 of the PD spec, Null & Error Handling:
"If 'name' is null or empty, no action is performed.  It is not an error."
Comment 1 Shawn Bayern 2002-03-30 21:14:41 UTC
Oops - && instead of || in the source.  Fixed.