Bug 8222 - NPE occurs with <fmt:message> if LocalizationContext is null or empty
Summary: NPE occurs with <fmt:message> if LocalizationContext 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 18: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-04-17 18:39:42 UTC
Given:

<fmt:bundle basename="${null}">
   <fmt:message key="mkey"/>
</fmt:bundle>

<fmt:bundle basename="">
   <fmt:message key="mkey"/>
</fmt:bundle>

Result:

java.lang.NullPointerException
	at
org.apache.taglibs.standard.tag.common.fmt.MessageSupport.doEndTag(MessageSupport.java:186)

Expected result, based on the spec is "???<key>???"
Comment 1 Jan Luehe 2002-04-17 18:56:02 UTC
Fixed.