Bug 8224 - NPE occurs if basename attribute of setBundle is null or empty.
Summary: NPE occurs if basename attribute of setBundle is null or empty.
Status: RESOLVED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: unspecified
Hardware: All All
: P3 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-17 19:49 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-04-17 19:49:57 UTC
given:

<fmt:setBundle basename="${null}"/>
 -or-
<fmt:setBundle basename=""/>

Result:

java.lang.NullPointerException
	at java.util.Hashtable.put(Hashtable.java:386)
	at org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.java:236)
	at
org.apache.taglibs.standard.tag.common.fmt.SetBundleSupport.doEndTag(SetBundleSupport.java:128)
Comment 1 Jan Luehe 2002-04-17 20:50:18 UTC
Fixed.