You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2011/02/25 15:30:55 UTC
DO NOT REPLY [Bug 50830] New: NPE in ISO8601DateFormat.hashCode and
toString
https://issues.apache.org/bugzilla/show_bug.cgi?id=50830
Summary: NPE in ISO8601DateFormat.hashCode and toString
Product: Log4j
Version: 1.2
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: minor
Priority: P2
Component: Other
AssignedTo: log4j-dev@logging.apache.org
ReportedBy: 42td@gmx.net
Created an attachment (id=26693)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26693)
Test main class which demonstrates the NPEs and ParseException.
hashCode and toString of ISO8601DateFormat throw a NullPointerException,
because the inherited field numberFormat is not initialized.
BTW, since it overrides parse(String, ParsePosition) to always return null, it
should probably do the same with parse(String). Instead, it throws a
ParseException.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org