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: [email protected]
        ReportedBy: [email protected]


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to