Bug 8335 - NPE if parseLocale attribute of <fmt_rt:parseNumber> is provided a null value.
Summary: NPE if parseLocale attribute of <fmt_rt:parseNumber> is provided a null value.
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:
: 8427 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-04-21 00:37 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-21 00:37:29 UTC
Given:

<fmt:parseNumber value="1234" parseLocale='<%= null %>'

Result:

java.lang.NullPointerException
     [java] 	at
org.apache.taglibs.standard.tag.common.fmt.SetLocaleSupport.parseLocale(SetLocaleSupport.java:184)
     [java] 	at
org.apache.taglibs.standard.tag.common.fmt.SetLocaleSupport.parseLocale(SetLocaleSupport.java:156)
     [java] 	at
org.apache.taglibs.standard.tag.rt.fmt.ParseNumberTag.setParseLocale(ParseNumberTag.java:96)
Comment 1 Ryan Lubke 2002-04-21 01:41:22 UTC
parseDate suffers from the same issue.

Stacktrace:

[java] 	at
org.apache.taglibs.standard.tag.common.fmt.SetLocaleSupport.parseLocale(SetLocaleSupport.java:184)
     [java] 	at
org.apache.taglibs.standard.tag.common.fmt.SetLocaleSupport.parseLocale(SetLocaleSupport.java:156)
     [java] 	at
org.apache.taglibs.standard.tag.rt.fmt.ParseNumberTag.setParseLocale(ParseNumberTag.java:96)
Comment 2 Jan Luehe 2002-04-23 21:10:46 UTC
*** Bug 8427 has been marked as a duplicate of this bug. ***
Comment 3 Jan Luehe 2002-04-24 17:58:43 UTC
Fixed.