ICU-865 If you don't get any data, display an error message and return.

X-SVN-Rev: 3882
This commit is contained in:
George Rhoten 2001-03-03 00:01:32 +00:00
parent fff14d8acf
commit 7cfaa281be

View File

@ -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;