Index: source/i18n/windtfmt.cpp |
diff --git a/source/i18n/windtfmt.cpp b/source/i18n/windtfmt.cpp |
index 1378491a60e562911a36546ca5c6dc479376d89e..9c9b57baf13e3098912fc69ecc9af7b0697db1ca 100644 |
--- a/source/i18n/windtfmt.cpp |
+++ b/source/i18n/windtfmt.cpp |
@@ -1,6 +1,6 @@ |
/* |
******************************************************************************** |
-* Copyright (C) 2005-2013, International Business Machines |
+* Copyright (C) 2005-2014, International Business Machines |
* Corporation and others. All Rights Reserved. |
******************************************************************************** |
* |
@@ -124,7 +124,7 @@ Win32DateFormat &Win32DateFormat::operator=(const Win32DateFormat &other) |
// delete fCalendar; |
- this->fDateTimeMsg = other.fDateTimeMsg; |
+ this->fDateTimeMsg = other.fDateTimeMsg == NULL ? NULL : new UnicodeString(*other.fDateTimeMsg); |
this->fTimeStyle = other.fTimeStyle; |
this->fDateStyle = other.fDateStyle; |
this->fLocale = other.fLocale; |