ICU-10256 Fixed NPE problem in TimeZoneJDK#clone().
X-SVN-Rev: 34038
This commit is contained in:
parent
788aa8acf6
commit
d8d708a40c
@ -1,6 +1,6 @@
|
||||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2008-2012, International Business Machines Corporation and *
|
||||
* Copyright (C) 2008-2013, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
@ -224,7 +224,7 @@ public class TimeZoneJDK extends com.ibm.icu.util.TimeZone {
|
||||
public com.ibm.icu.util.TimeZone cloneAsThawed() {
|
||||
TimeZoneJDK tz = (TimeZoneJDK)super.cloneAsThawed();
|
||||
tz.fJdkTz = (TimeZone)fJdkTz.clone();
|
||||
tz.fJdkCal = (java.util.GregorianCalendar)fJdkCal.clone();
|
||||
tz.fJdkCal = null; // To be instantiated when necessary
|
||||
tz.fIsFrozen = false;
|
||||
return tz;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user