Synchronization issue in TimeZone.getDisplayName - throws NPE from SimpleDateFormat.format

Description

Deleted Component: formatting

Calling com.ibm.icu.util.TimeZone.getTimeZone("GMT").getDisplayName() on multiple threads will intermittently throw a NullPointerException with the following trace:
java.lang.NullPointerException
at com.ibm.icu.text.SimpleDateFormat.format(SimpleDateFormat.java:674)
at com.ibm.icu.text.SimpleDateFormat.format(SimpleDateFormat.java:653)
at com.ibm.icu.text.DateFormat.format(DateFormat.java:483)
at com.ibm.icu.text.DateFormat.format(DateFormat.java:494)
at com.ibm.icu.util.TimeZone._getDisplayName(TimeZone.java:424)
at com.ibm.icu.util.TimeZone.getDisplayName(TimeZone.java:302)
Occurring in at least version 4.0 and 4.2
Testcase attached

Activity

Show:
TracBot
June 30, 2018, 11:31 PM
Trac Comment 5 by —2016-10-05T23:14:21.544Z

Milestone 4.3.2 deleted

Fixed

Assignee

Yoshito Umaoka

Reporter

TracBot

Components

None

Reviewer

None

Priority

major

Time Needed

None

Fix versions