ICU-865 If you don't get any data, display an error message and return.
X-SVN-Rev: 3882
This commit is contained in:
parent
fff14d8acf
commit
7cfaa281be
@ -1014,6 +1014,10 @@ void TimeZoneTest::TestCountries() {
|
||||
UnicodeString tokyoZone("Asia/Tokyo", "");
|
||||
int32_t i;
|
||||
|
||||
if (s == NULL || n <= 0) {
|
||||
errln("FAIL: TimeZone::createAvailableIDs() returned nothing");
|
||||
return;
|
||||
}
|
||||
for (i=0; i<n; ++i) {
|
||||
if (*s[i] == (laZone)) {
|
||||
la = TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user