Bug 7339 - If a null value is passed to the name attribute of <c-rt:param> an NPE occurs
Summary: If a null value is passed to the name attribute of <c-rt:param> an NPE occurs
Status: RESOLVED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-21 23:39 UTC by Ryan Lubke
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.