ICU-13368 Fixing serialization test failure caused by r40561.

X-SVN-Rev: 40574
This commit is contained in:
Shane Carr 2017-10-05 22:32:41 +00:00
parent e6987fbfd8
commit f0e9b357c2

View File

@ -33,6 +33,8 @@ public class ICUCurrencyDisplayInfoProvider implements CurrencyDisplayInfoProvid
@Override
public CurrencyDisplayInfo getInstance(ULocale locale, boolean withFallback) {
// Make sure the locale is non-null (this can happen during deserialization):
if (locale == null) { locale = ULocale.ROOT; }
ICUCurrencyDisplayInfo instance = currencyDisplayInfoCache;
if (instance == null || !instance.locale.equals(locale) || instance.fallback != withFallback) {
ICUResourceBundle rb;