mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-06 22:15:31 +00:00
ICU-2840 don't crash if there is no data
X-SVN-Rev: 12308
This commit is contained in:
parent
ad141400ac
commit
86a7753f88
1 changed files with 6 additions and 1 deletions
|
@ -85,9 +85,14 @@ void IntlTestDateFormatSymbols::testSymbols(/* char *par */)
|
|||
|
||||
int32_t count = 0;
|
||||
const UnicodeString *eras = en.getEras(count);
|
||||
if(count == 0) {
|
||||
errln("ERROR: 0 english eras.. exitting..\n");
|
||||
return;
|
||||
}
|
||||
|
||||
fr.setEras(eras, count);
|
||||
if( *en.getEras(count) != *fr.getEras(count)) {
|
||||
errln("ERROR: setEras() failed");
|
||||
errln("ERROR: setEras() failed");
|
||||
}
|
||||
|
||||
const UnicodeString *months = en.getMonths(count);
|
||||
|
|
Loading…
Add table
Reference in a new issue